Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-11211

QueueMetrics leaks Configuration objects when validation API is called multiple times

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      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.

      1. Validate adding queue1 via validation API
      2. Validation API instantiates a new CS, with a new Configuration, that instantiates a ConfigurationProperties
      3. 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

      Attachments

        Issue Links

          Activity

            People

              quapaw András Győri
              quapaw András Győri
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h