cmccabe commented on code in PR #11969: URL: https://github.com/apache/kafka/pull/11969#discussion_r865495566
########## metadata/src/main/java/org/apache/kafka/controller/QuorumController.java: ########## @@ -906,12 +906,35 @@ private void appendRaftEvent(String name, Runnable runnable) { if (this != metaLogListener) { log.debug("Ignoring {} raft event from an old registration", name); } else { - runnable.run(); + try { + runnable.run(); + } finally { + maybeCompleteAuthorizerInitialLoad(); + } } }); } } + private void maybeCompleteAuthorizerInitialLoad() { + if (!needToCompleteAuthorizerLoad) return; + OptionalLong highWatermark = raftClient.highWatermark(); + if (highWatermark.isPresent()) { + if (lastCommittedOffset + 1 >= highWatermark.getAsLong()) { Review Comment: yeah, I think this is OK for now. if we have issues we can revisit... -- 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