HADOOP-10126. LightWeightGSet log message is confusing. Contributed by Vinay.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1545376 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2013-11-25 19:42:19 +00:00
parent eb3c1607b0
commit b1d6574a11
2 changed files with 7 additions and 2 deletions

View File

@ -388,6 +388,8 @@ Release 2.3.0 - UNRELEASED
HADOOP-10111. Allow DU to be initialized with an initial value (Kihwal Lee HADOOP-10111. Allow DU to be initialized with an initial value (Kihwal Lee
via jeagles) via jeagles)
HADOOP-10126. LightWeightGSet log message is confusing. (Vinay via suresh)
OPTIMIZATIONS OPTIMIZATIONS
HADOOP-9748. Reduce blocking on UGI.ensureInitialized (daryn) HADOOP-9748. Reduce blocking on UGI.ensureInitialized (daryn)

View File

@ -348,8 +348,11 @@ public class LightWeightGSet<K, E extends K> implements GSet<K, E> {
LOG.info("Computing capacity for map " + mapName); LOG.info("Computing capacity for map " + mapName);
LOG.info("VM type = " + vmBit + "-bit"); LOG.info("VM type = " + vmBit + "-bit");
LOG.info(percentage + "% max memory = " LOG.info(percentage + "% max memory "
+ StringUtils.TraditionalBinaryPrefix.long2String(maxMemory, "B", 1)); + StringUtils.TraditionalBinaryPrefix.long2String(maxMemory, "B", 1)
+ " = "
+ StringUtils.TraditionalBinaryPrefix.long2String((long) percentMemory,
"B", 1));
LOG.info("capacity = 2^" + exponent + " = " + c + " entries"); LOG.info("capacity = 2^" + exponent + " = " + c + " entries");
return c; return c;
} }