AmatyaAvadhanula commented on code in PR #15726:
URL: https://github.com/apache/druid/pull/15726#discussion_r1505306907
##########
server/src/main/java/org/apache/druid/discovery/BaseNodeRoleWatcher.java:
##########
@@ -65,8 +65,11 @@ public class BaseNodeRoleWatcher
private final Object lock = new Object();
+ // Always countdown under lock
private final CountDownLatch cacheInitialized = new CountDownLatch(1);
+ private boolean cacheInitializationTimedOut = false;
Review Comment:
Done
##########
server/src/main/java/org/apache/druid/client/HttpServerInventoryView.java:
##########
@@ -187,6 +187,14 @@ public void nodeViewInitialized()
}
}
+ @Override
+ public void nodeViewInitializedTimedOut()
+ {
+ if (!initialized.getAndSet(true)) {
+
inventorySyncExecutor.execute(HttpServerInventoryView.this::serverInventoryInitialized);
+ }
Review Comment:
Done
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]