András Győri created YARN-11211:
-----------------------------------

             Summary: QueueMetrics leaks Configuration objects when validation 
API is called multiple times
                 Key: YARN-11211
                 URL: https://issues.apache.org/jira/browse/YARN-11211
             Project: Hadoop YARN
          Issue Type: Bug
          Components: capacity scheduler
            Reporter: András Győri
            Assignee: András Győri


QueueMetrics#QUEUE_METRICS is a static map, which is a source of multiple bugs 
eg. YARN-11152.

The current scenario could be reproduced by adding queues one at a time via the 
mutation API.
 # Validate adding queue1 via validation API
 # Validation API instantiates a new CS, with a new Configuration, that 
instantiates a ConfigurationProperties
 # QueueMetrics does share the same QUEUE_METRICS cache with the original CS, 
where there is now a Metrics object that belongs to the new CS



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