Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.7.0, 3.7.1
-
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
- is caused by
-
KAFKA-14021 MirrorMaker 2 should implement KIP-618 APIs
- Resolved
- links to