[ 
https://issues.apache.org/jira/browse/YARN-11587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17772934#comment-17772934
 ] 

ASF GitHub Bot commented on YARN-11587:
---------------------------------------

Neilxzn opened a new pull request, #6157:
URL: https://github.com/apache/hadoop/pull/6157

   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: 
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 
'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   https://issues.apache.org/jira/browse/YARN-11587
   
   ### How was this patch tested?
   no test
   
   ### For code changes:
   
   add synchronized kerword
   ```
   private synchronized QueueMetrics getPartitionMetrics(String partition) {
   ...
   }
   ```
   
   




> Fix the possible issue of duplicate registration in the metrics queue.
> ----------------------------------------------------------------------
>
>                 Key: YARN-11587
>                 URL: https://issues.apache.org/jira/browse/YARN-11587
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn
>    Affects Versions: 3.4.0
>         Environment: 3.3.0
>            Reporter: Max  Xie
>            Priority: Minor
>             Fix For: 3.4.0
>
>         Attachments: image-2023-10-08-15-12-49-688.png
>
>
> In our cluster, there has been an issue of duplicate registration of queue 
> metrics, causing the Resourcemanager to fail and exit. Through code analysis, 
> it is possible that adding the synchronized keyword is required when 
> registering the metrics queue method. !image-2023-10-08-15-12-49-688.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to