YARN-2735. diskUtilizationPercentageCutoff and diskUtilizationSpaceCutoff are initialized twice in DirectoryCollection. (Zhihai Xu via kasha)
(cherry picked from commit 061bc293c8
)
This commit is contained in:
parent
b390579c15
commit
f030959849
|
@ -35,6 +35,9 @@ Release 2.7.0 - UNRELEASED
|
||||||
YARN-2712. TestWorkPreservingRMRestart: Augment FS tests with
|
YARN-2712. TestWorkPreservingRMRestart: Augment FS tests with
|
||||||
queue and headroom checks. (Tsuyoshi Ozawa via kasha)
|
queue and headroom checks. (Tsuyoshi Ozawa via kasha)
|
||||||
|
|
||||||
|
YARN-2735. diskUtilizationPercentageCutoff and diskUtilizationSpaceCutoff
|
||||||
|
are initialized twice in DirectoryCollection. (Zhihai Xu via kasha)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
|
@ -146,8 +146,6 @@ class DirectoryCollection {
|
||||||
errorDirs = new CopyOnWriteArrayList<String>();
|
errorDirs = new CopyOnWriteArrayList<String>();
|
||||||
fullDirs = new CopyOnWriteArrayList<String>();
|
fullDirs = new CopyOnWriteArrayList<String>();
|
||||||
|
|
||||||
diskUtilizationPercentageCutoff = utilizationPercentageCutOff;
|
|
||||||
diskUtilizationSpaceCutoff = utilizationSpaceCutOff;
|
|
||||||
diskUtilizationPercentageCutoff =
|
diskUtilizationPercentageCutoff =
|
||||||
utilizationPercentageCutOff < 0.0F ? 0.0F
|
utilizationPercentageCutOff < 0.0F ? 0.0F
|
||||||
: (utilizationPercentageCutOff > 100.0F ? 100.0F
|
: (utilizationPercentageCutOff > 100.0F ? 100.0F
|
||||||
|
|
Loading…
Reference in New Issue