gianm commented on code in PR #18200:
URL: https://github.com/apache/druid/pull/18200#discussion_r2188638392
##########
server/src/main/java/org/apache/druid/client/BrokerServerView.java:
##########
@@ -157,11 +157,24 @@ public CallbackAction
segmentSchemasAnnounced(SegmentSchemas segmentSchemas)
segmentFilter
);
- baseView.registerServerRemovedCallback(
+ baseView.registerServerCallback(
exec,
- server -> {
- removeServer(server);
- return CallbackAction.CONTINUE;
+ new ServerCallback() {
+ @Override
+ public CallbackAction serverAdded(DruidServer server)
+ {
+ if (!server.getType().equals(ServerType.BROKER)) {
+ addServer(server);
+ }
+ return CallbackAction.CONTINUE;
Review Comment:
It's not used, & seems like it hasn't been used since #6742. I suppose we
could remove it in this PR or in a new one.
--
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]