mwesterby commented on code in PR #23639:
URL: https://github.com/apache/kafka/pull/23639#discussion_r4526880592
##########
metadata/src/main/java/org/apache/kafka/controller/QuorumController.java:
##########
@@ -1266,6 +1266,16 @@ public void processBatchEndOffset(long offset) {
}
}
+ public CompletableFuture<Void> forceRenounce() {
+ CompletableFuture<Void> future = new CompletableFuture<>();
+ appendControlEvent("forceRenounce", () -> {
+ if (isActiveController())
+ renounce();
+ future.complete(null);
+ });
+ return future;
+ }
+
Review Comment:
I've updated this logic so we now pass in the epoch we saw the conflict in
and only resign if this is still the current epoch. Added tests for this too.
--
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]