YARN-3617. Fix WindowsResourceCalculatorPlugin.getCpuFrequency() returning
always -1. Contributed by J.Andreina.
(cherry picked from commit 318d2cde7c
)
This commit is contained in:
parent
acc90ca175
commit
2802c63ac3
|
@ -482,6 +482,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