rajinisivaram commented on code in PR #17720:
URL: https://github.com/apache/kafka/pull/17720#discussion_r1835335426
##########
clients/src/main/java/org/apache/kafka/clients/admin/internals/AdminMetadataManager.java:
##########
@@ -289,17 +304,24 @@ public void update(Cluster cluster, long now) {
this.state = State.QUIESCENT;
this.fatalException = null;
+ this.metadataAttemptStartMs = Optional.empty();
if (!cluster.nodes().isEmpty()) {
this.cluster = cluster;
}
}
+ public void initiateRebootstrap() {
+ requestUpdate();
+ this.metadataAttemptStartMs = Optional.of(0L);
Review Comment:
In rebootstrap(), we set time to `now` as in NetworkClient. In both, when we
receive REBOOTSTRAP_REQUIRED error code, we set to 0, so that rebootstrap is
triggered on the next poll regardless of time.
--
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]