Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-12738

Parameters with dots handled incorrectly in BMP feature config

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 27.0.0
    • Fix Version/s: 26.1.2
    • Component/s: Telemetry
    • Security Level: Default (Default Security Scheme)
    • Labels:

      Description

      When BMP is configured to use Kafka persistence, the parameters which contain "." are not parsed properly from the adapter properties. The config below should result in parameter map entries of "kafka.bootstrap.servers" and "kafka.batch.size" for adapter 3. However, PropertyTree splits on "." and creates subtrees which are not handled properly in getMap().

       

      name = BMP
      adapters.1.name = BMP-PeerStatus-Adapter
      adapters.1.class-name = org.opennms.netmgt.telemetry.protocols.bmp.adapter.BmpPeerStatusAdapter
      adapters.2.name = BMP-Telemetry-Adapter
      adapters.2.class-name = org.opennms.netmgt.telemetry.protocols.bmp.adapter.BmpTelemetryAdapter
      adapters.3.name = BMP-OpenBMP-Integration-Adapter
      adapters.3.class-name = org.opennms.netmgt.telemetry.protocols.bmp.adapter.openbmp.BmpIntegrationAdapter
      adapters.3.parameters.kafka.bootstrap.servers = example.com:9092
      adapters.3.parameters.kafka.batch.size = 5
      

      See:

      from(Map) and getMap() in features/telemetry/distributed/common/src/main/java/org/opennms/netmgt/telemetry/distributed/common/PropertyTree.java

      createBean() in features/telemetry/protocols/bmp/adapter/src/main/java/org/opennms/netmgt/telemetry/protocols/bmp/adapter/openbmp/BmpIntegrationAdapterFactory.java

      getParameterMap() in features/telemetry/distributed/common/src/main/java/org/opennms/netmgt/telemetry/distributed/common/MapBasedAdapterDef.java

       

        Attachments

          Activity

            People

            Assignee:
            mszoek Zoë Knox
            Reporter:
            mszoek Zoë Knox
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: