Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-15473

Connect connector-plugins endpoint shows duplicate plugins

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.6.0
    • 3.6.0, 3.7.0
    • connect
    • None

    Description

      In <3.6.0-rc0, duplicates of a plugin would be shown if it subclassed multiple interfaces. For example:

        {
          "class": "org.apache.kafka.connect.storage.StringConverter",
          "type": "converter"
        },
        { 
          "class": "org.apache.kafka.connect.storage.StringConverter",
          "type": "converter"
        },

      In 3.6.0-rc0, there are many more listings for the same plugin. For example:

        {
          "class": "org.apache.kafka.connect.storage.StringConverter",
          "type": "converter"
        },
        {
          "class": "org.apache.kafka.connect.storage.StringConverter",
          "type": "converter"
        },
        {
          "class": "org.apache.kafka.connect.storage.StringConverter",
          "type": "converter"
        },
        {
          "class": "org.apache.kafka.connect.storage.StringConverter",
          "type": "converter"
        },
        {
          "class": "org.apache.kafka.connect.storage.StringConverter",
          "type": "converter"
        },
        {
          "class": "org.apache.kafka.connect.storage.StringConverter",
          "type": "converter",
          "version": "3.6.0"
        },

      These duplicates appear to happen when a plugin with the same class name appears in multiple locations/classloaders.
      When interpreting a connector configuration, only one of these plugins will be chosen, so only one is relevant to show to users. The REST API should only display the plugins which are eligible to be loaded, and hide the duplicates.

      Attachments

        Issue Links

          Activity

            People

              gharris1727 Greg Harris
              gharris1727 Greg Harris
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: