You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ijuma (via GitHub)" <gi...@apache.org> on 2023/05/03 17:16:22 UTC
[GitHub] [kafka] ijuma commented on a diff in pull request #13668: MINOR; Use equals method with Uuid
ijuma commented on code in PR #13668:
URL: https://github.com/apache/kafka/pull/13668#discussion_r1183991722
##########
metadata/src/main/java/org/apache/kafka/controller/ControllerMetricsManager.java:
##########
@@ -202,10 +202,10 @@ private void handleFencingChange(Integer brokerId, BrokerRegistrationFencingChan
throw new IllegalArgumentException(String.format("Broker with id %s is not registered", brokerId));
}
- if (fencingChange == BrokerRegistrationFencingChange.FENCE) {
+ if (fencingChange.equals(BrokerRegistrationFencingChange.FENCE)) {
fencedBrokers.add(brokerId);
updateBrokerStateMetrics();
- } else if (fencingChange == BrokerRegistrationFencingChange.UNFENCE) {
+ } else if (fencingChange.equals(BrokerRegistrationFencingChange.UNFENCE)) {
Review Comment:
This and the line above are not needed since they're enums, right?
--
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-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org