Skip to content

Commit

Permalink
KAFKA-12326: Corrected regresion in MirrorMaker 2 executable introduc…
Browse files Browse the repository at this point in the history
…ed with KAFKA-10021 (#10122)

Fixes the recent change to the `MirrorMaker` class (used only in the MirrorMaker 2 executable) that uses a `SharedTopicAdmin` client as part of Connect, so that the correct properties into the `SharedTopicAdmin`.

Author: Randall Hauch <rhauch@gmail.com>
Reviewer: Konstantine Karantasis <konstantine@confluent.io>
  • Loading branch information
rhauch committed Feb 12, 2021
1 parent b86a6d3 commit db803ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private void addHerder(SourceAndTarget sourceAndTarget) {
DistributedConfig distributedConfig = new DistributedConfig(workerProps);
String kafkaClusterId = ConnectUtils.lookupKafkaClusterId(distributedConfig);
// Create the admin client to be shared by all backing stores for this herder
Map<String, Object> adminProps = new HashMap<>(config.originals());
Map<String, Object> adminProps = new HashMap<>(distributedConfig.originals());
SharedTopicAdmin sharedAdmin = new SharedTopicAdmin(adminProps);
KafkaOffsetBackingStore offsetBackingStore = new KafkaOffsetBackingStore(sharedAdmin);
offsetBackingStore.configure(distributedConfig);
Expand Down

0 comments on commit db803ec

Please sign in to comment.