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

Fix WindowsResourceCalculatorPlugin.getCpuFrequency() returning always -1

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows 7 x64 SP1

    • Target Version/s:
    • Hadoop Flags:
      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

          Issue Links

            Activity

              People

              • Assignee:
                andreina J.Andreina
                Reporter:
                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