jihoonson commented on a change in pull request #9302: Not use for 
CoordinatorRuleManager.rules
URL: https://github.com/apache/druid/pull/9302#discussion_r373877374
 
 

 ##########
 File path: 
server/src/main/java/org/apache/druid/server/router/CoordinatorRuleManager.java
 ##########
 @@ -58,7 +57,7 @@
   private final ObjectMapper jsonMapper;
   private final Supplier<TieredBrokerConfig> config;
 
-  private final AtomicReference<ConcurrentHashMap<String, List<Rule>>> rules;
+  private final AtomicReference<Map<String, List<Rule>>> rules;
 
 Review comment:
   Oh yeah, I didn't mean the value type of `rules` should be 
`UnmodifiableList<Rule>`. 
   
   @suneet-s do you regard your comment as a blocker for this PR? Those tests 
would be definitely nice to have, but since any tests haven't rewritten for 
this class, I'm fine with adding all necessary tests including the ones you 
mentioned in a follow-up PR at once. @zhenxiao you can do in this PR if you 
want though.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to