YARN-2735. diskUtilizationPercentageCutoff and diskUtilizationSpaceCutoff are initialized twice in DirectoryCollection. (Zhihai Xu via kasha)

This commit is contained in:
Karthik Kambatla 2014-11-11 10:31:39 -08:00
parent 58e9bf4b90
commit 061bc293c8
2 changed files with 3 additions and 2 deletions

View File

@ -62,6 +62,9 @@ Release 2.7.0 - UNRELEASED
YARN-2712. TestWorkPreservingRMRestart: Augment FS tests with
queue and headroom checks. (Tsuyoshi Ozawa via kasha)
YARN-2735. diskUtilizationPercentageCutoff and diskUtilizationSpaceCutoff
are initialized twice in DirectoryCollection. (Zhihai Xu via kasha)
OPTIMIZATIONS
BUG FIXES

View File

@ -146,8 +146,6 @@ class DirectoryCollection {
errorDirs = new CopyOnWriteArrayList<String>();
fullDirs = new CopyOnWriteArrayList<String>();
diskUtilizationPercentageCutoff = utilizationPercentageCutOff;
diskUtilizationSpaceCutoff = utilizationSpaceCutOff;
diskUtilizationPercentageCutoff =
utilizationPercentageCutOff < 0.0F ? 0.0F
: (utilizationPercentageCutOff > 100.0F ? 100.0F