mumrah commented on code in PR #13802:
URL: https://github.com/apache/kafka/pull/13802#discussion_r1219791584
##########
metadata/src/main/java/org/apache/kafka/metadata/migration/KRaftMigrationZkWriter.java:
##########
@@ -475,12 +478,13 @@ void handleProducerIdSnapshot(ProducerIdsImage image,
KRaftMigrationOperationCon
void handleConfigsDelta(ConfigurationsImage configsImage,
ConfigurationsDelta configsDelta, KRaftMigrationOperationConsumer
operationConsumer) {
Set<ConfigResource> updatedResources = configsDelta.changes().keySet();
updatedResources.forEach(configResource -> {
+ String opType = brokerOrTopicOpType(configResource,
UPDATE_BROKER_CONFIG, UPDATE_TOPIC_CONFIG);
Map<String, String> props =
configsImage.configMapForResource(configResource);
if (props.isEmpty()) {
- operationConsumer.accept("DeleteConfig", "Delete configs for "
+ configResource, migrationState ->
+ operationConsumer.accept(opType, "Delete configs for " +
configResource, migrationState ->
Review Comment:
Yup, good catch
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]