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

Fix WindowsResourceCalculatorPlugin.getCpuFrequency() returning always -1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.0
    • 2.8.0, 3.0.0-alpha1
    • None
    • None
    • Windows 7 x64 SP1

    • Reviewed

    Description

      In the class 'WindowsResourceCalculatorPlugin.java' of the YARN project, there is an unused variable for CPU frequency.

      " /**

      {@inheritDoc}

      */
      @Override
      public long getCpuFrequency()

      { refreshIfNeeded(); return -1; }

      "

      Please change '-1' to use 'cpuFrequencyKhz'.

      org/apache/hadoop/yarn/util/WindowsResourceCalculatorPlugin.java

      Attachments

        1. YARN-3617.1.patch
          0.9 kB
          J.Andreina

        Issue Links

          Activity

            People

              andreina J.Andreina
              xafero Georg Berendt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified