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

Fix spotbugs warning in CapacitySchedulerConfiguration.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • capacity scheduler

    Description

      https://ci-hadoop.apache.org/job/hadoop-qbt-trunk-java8-linux-x86_64/447/artifact/out/branch-spotbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager-warnings.html

      Bug type DM_BOXED_PRIMITIVE_FOR_PARSING (click for details)
      In class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration
      In method org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration.extractFloatValueFromWeightConfig(String)
      Called method Float.floatValue()
      Should call Float.parseFloat(String) instead
      At CapacitySchedulerConfiguration.java:[line 778]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aajisaka Akira Ajisaka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: