YARN-3617. Fix WindowsResourceCalculatorPlugin.getCpuFrequency() returning
always -1. Contributed by J.Andreina.
This commit is contained in:
parent
5dbc8c9cb0
commit
318d2cde7c
|
@ -530,6 +530,9 @@ Release 2.8.0 - UNRELEASED
|
|||
YARN-3714. AM proxy filter can not get RM webapp address from
|
||||
yarn.resourcemanager.hostname.rm-id. (Masatake Iwasaki via xgong)
|
||||
|
||||
YARN-3617. Fix WindowsResourceCalculatorPlugin.getCpuFrequency()
|
||||
returning always -1. (J.Andreina via devaraj)
|
||||
|
||||
Release 2.7.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -157,7 +157,7 @@ public class WindowsResourceCalculatorPlugin extends ResourceCalculatorPlugin {
|
|||
@Override
|
||||
public long getCpuFrequency() {
|
||||
refreshIfNeeded();
|
||||
return -1;
|
||||
return cpuFrequencyKhz;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
|
Loading…
Reference in New Issue