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

Connector does not prefer to use packaged classes during configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.6.0
    • connect
    • None

    Description

      In connector tasks, classes loaded during configuration are preferentially loaded from the PluginClassLoader since KAFKA-8819 was implemented. This same prioritization is not currently respected in the connector itself, where the delegating classloader is used as the context classloader. This leads to the possibility for different versions of converters to be loaded, or different versions of dependencies to be found when executing code in the connector vs task.

      Worker::startConnector should be changed to follow the startTask / KAFKA-8819 prioritization scheme, by activating the PluginClassLoader earlier.

      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: