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

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 3.0.0-alpha4
    • 3.0.0-alpha4
    • fairscheduler

    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

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

              Dates

                Created:
                Updated: