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

MirrorMaker2 worker config does not pass config.providers value to connectors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.7.0, 3.7.1
    • 3.9.0, 3.7.2, 3.8.1
    • mirrormaker
    • None

    Description

      MirrorMaker2 worker config does not pass config.providers value to connectors.

      With this commit we changed the behavior of the stringsWithPrefix method.
      The new implementation does not include the configurations where the prefix exactly the same as the config key.

      For example:

      Prefix:

      config.providers

      Configs:

      config.providers=env
      config.providers.env.class=org.apache.kafka.common.config.provider.EnvVarConfigProvider

      Result:

      config.providers.env.class=org.apache.kafka.common.config.provider.EnvVarConfigProvider 

      The result does not include the 

      config.providers=env

       

      As a result of this behavior, the connectors could not resolve variables.

      Reproduction is easy, just start an MM2 instance with the following config

      ssl.truststore.location=${env:TRUSTSTORE_LOCATION}
      
      config.providers=env
      config.providers.env.class=org.apache.kafka.common.config.provider.EnvVarConfigProvider 

      Check the connector configs in the log. (grep for ${env:TRUSTSTORE_LOCATION})

      Attachments

        Issue Links

          Activity

            People

              k0b3rit Bertalan Kondrat
              k0b3rit Bertalan Kondrat
              Chris Egerton Chris Egerton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: