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

AllocationFileLoaderService.loadQueue() should use a switch statement in the main tag parsing loop instead of the if/else-if/...

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0-alpha4
    • Fix Version/s: 3.0.0-alpha4
    • Component/s: fairscheduler
    • Labels:

      Description

            if ("minResources".equals(field.getTagName())) {
              String text = ((Text)field.getFirstChild()).getData().trim();
              Resource val =
                  FairSchedulerConfiguration.parseResourceConfigValue(text);
              minQueueResources.put(queueName, val);
            } else if ("maxResources".equals(field.getTagName())) {
            ...

        Attachments

        1. YARN-6885.005.patch
          17 kB
          Yu-Tang Lin
        2. YARN-6885.006.patch
          15 kB
          Yu-Tang Lin
        3. YARN-6885.007.patch
          15 kB
          Yu-Tang Lin
        4. YARN-6885.008.patch
          14 kB
          Yu-Tang Lin

          Issue Links

            Activity

              People

              • Assignee:
                Yu-Tang Lin Yu-Tang Lin
                Reporter:
                templedf Daniel Templeton
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: