findingrish commented on code in PR #14985: URL: https://github.com/apache/druid/pull/14985#discussion_r1334961176
########## server/src/main/java/org/apache/druid/client/BrokerServerView.java: ########## @@ -85,9 +81,14 @@ public class BrokerServerView implements TimelineServerView private final ServiceEmitter emitter; private final BrokerSegmentWatcherConfig segmentWatcherConfig; private final Predicate<Pair<DruidServerMetadata, DataSegment>> segmentFilter; - private final CountDownLatch initialized = new CountDownLatch(1); + protected final Object lock = new Object(); + + protected final Map<SegmentId, ServerSelector> selectors = new HashMap<>(); Review Comment: This is existing code. I have only changed their visibility. Added comments. -- 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]
