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

Fix checkstyle error in CapacityScheduler.java

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In the below code CS#parseQueue, expression can be simplified instead of queue instanceof LeafQueue == true & queues.get(queueName) instanceof LeafQueue == true

       if(queue instanceof LeafQueue == true && queues.containsKey(queueName)
            && queues.get(queueName) instanceof LeafQueue == true) {
            throw new IOException("Two leaf queues were named " + queueName
              + ". Leaf queue names must be distinct");
          }
      

        Attachments

        1. YARN-4535.v1.001.patch
          1 kB
          Naganarasimha G R

          Activity

            People

            • Assignee:
              Naganarasimha Naganarasimha G R
              Reporter:
              rohithsharma Rohith Sharma K S
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: