eubnara commented on code in PR #3657:
URL: https://github.com/apache/ambari/pull/3657#discussion_r1131134058


##########
ambari-server/src/main/java/org/apache/ambari/server/events/publishers/AgentCommandsPublisher.java:
##########
@@ -95,7 +96,7 @@ public class AgentCommandsPublisher {
 
   public void sendAgentCommand(Multimap<Long, AgentCommand> agentCommands) 
throws AmbariRuntimeException {
     if (agentCommands != null && !agentCommands.isEmpty()) {
-      Map<Long, TreeMap<String, ExecutionCommandsCluster>> 
executionCommandsClusters = new TreeMap<>();
+      Map<Long, TreeMap<String, ExecutionCommandsCluster>> 
executionCommandsClusters = new ConcurrentHashMap<>();
       Map<Long, Map<String, DesiredConfig>> clusterDesiredConfigs = new 
HashMap<>();

Review Comment:
   @dmmkr 
   How about using `ConcurrentHashMap` for `clusterDesiredConfigs` also?



-- 
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]

Reply via email to