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

Fix FindBug issue in QueueMetrics

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.3.0, 3.2.2, 3.1.4
    • Component/s: None
    • Labels:
      None

      Description

      Below FindBug issue appears in the trunk build

      org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics.registerCustomResources() invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead
      Bug type DM_NUMBER_CTOR (click for details) 
      In class org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics
      In method org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics.registerCustomResources()
      Called method new Long(long)
      Should call Long.valueOf(long) instead
      At QueueMetrics.java:[line 468]
      

        Attachments

        1. YARN-9915-01.patch
          1 kB
          Prabhu Joseph

          Activity

            People

            • Assignee:
              prabhujoseph Prabhu Joseph
              Reporter:
              prabhujoseph Prabhu Joseph
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: