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

Fix FindBug issue in QueueMetrics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0, 3.2.2, 3.1.4, 2.10.1
    • None
    • 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

            prabhujoseph Prabhu Joseph
            prabhujoseph Prabhu Joseph
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: