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

Failed refreshQueues due to misconfiguration prevents further refreshing of queues

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.2-alpha, 0.23.3
    • Component/s: None
    • Labels:
      None

      Description

      Stumbled upon this problem while refreshing queues with incorrect configuration. The exact scenario was:
      1. Added a new queue "newQueue" without defining its capacity.
      2. "bin/mapred queue -refreshQueues" fails correctly with "Illegal capacity of -1 for queue root.newQueue"
      3. However, after defining the capacity of "newQueue" followed by a second "bin/mapred queue -refreshQueues" throws "org.apache.hadoop.metrics2.MetricsException: Metrics source QueueMetrics,q0=root,q1=newQueue already exists!" Also see Hadoop:name=QueueMetrics,q0=root,q1=newQueue,service=ResourceManager metrics being available even though the queue was not added.

      The expected behavior would be to refresh the queues correctly and allow addition of "newQueue".

        Attachments

        1. YARN-27.patch
          9 kB
          Arun C Murthy

          Activity

            People

            • Assignee:
              acmurthy Arun C Murthy
              Reporter:
              rramya Ramya Sunil
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: