You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "dmmkr (via GitHub)" <gi...@apache.org> on 2023/03/15 18:42:18 UTC

[GitHub] [ambari] dmmkr commented on a diff in pull request #3657: AMBARI-25884: Set Keytab, Check keytab and Remove Keytab operations f…

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


##########
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:
   Thanks @eubnara for the review.
   I have updated clusterDesiredConfigs to use ConcurrentHashMap



-- 
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: dev-unsubscribe@ambari.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org