CalvinConfluent commented on code in PR #14706:
URL: https://github.com/apache/kafka/pull/14706#discussion_r1489894351


##########
metadata/src/main/java/org/apache/kafka/controller/ClusterControlManager.java:
##########
@@ -336,10 +342,14 @@ public ControllerResult<BrokerRegistrationReply> 
registerBroker(
                 ", but got cluster ID " + request.clusterId());
         }
         int brokerId = request.brokerId();
+        List<ApiMessageAndVersion> records = new ArrayList<>();
         BrokerRegistration existing = brokerRegistrations.get(brokerId);
         if (version < 2 || existing == null || request.previousBrokerEpoch() 
!= existing.epoch()) {
-            // TODO(KIP-966): Update the ELR if the broker has an unclean 
shutdown.
-            log.debug("Received an unclean shutdown request");
+            if (handleBrokerUncleanShutdownHelper == null) {
+                log.warn("No handleBrokerUncleanShutdownHelper provided");

Review Comment:
   Thanks for the advice! Updated.



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to