Skip to content

Commit

Permalink
[#3275] Fix NPE on Command Router startup.
Browse files Browse the repository at this point in the history
Signed-off-by: Carsten Lohmann <[email protected]>
  • Loading branch information
calohmn committed May 30, 2022
1 parent 98d8b1b commit 06dcb87
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ public InternalKafkaTopicCleanupService(
Objects.requireNonNull(adminClientConfigProperties);

final var adminClientConfig = adminClientConfigProperties.getAdminClientConfig(CLIENT_NAME);
final var kafkaClientFactory = new KafkaClientFactory(vertx);
this.kafkaAdminClientCreator = () -> kafkaClientFactory.createKafkaAdminClientWithRetries(
adminClientConfig,
lifecycleStatus::isStarting,
KafkaClientFactory.UNLIMITED_RETRIES_DURATION);
this.kafkaAdminClientCreator = () -> {
final var kafkaClientFactory = new KafkaClientFactory(vertx);
return kafkaClientFactory.createKafkaAdminClientWithRetries(
adminClientConfig,
lifecycleStatus::isStarting,
KafkaClientFactory.UNLIMITED_RETRIES_DURATION);
};
}

/**
Expand Down

0 comments on commit 06dcb87

Please sign in to comment.