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

Fix checkstyle error in CapacityScheduler.java

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha1
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: