HDFS-3613. GSet prints some INFO level values, which aren't really very useful to all. Contributed by Andrew Wang. (harsh)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1359999 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3bfb26ad3b
commit
c81aed0271
|
@ -295,6 +295,9 @@ Branch-2 ( Unreleased changes )
|
||||||
HDFS-3629. Fix the typo in the error message about inconsistent
|
HDFS-3629. Fix the typo in the error message about inconsistent
|
||||||
storage layout version. (Brandon Li via harsh)
|
storage layout version. (Brandon Li via harsh)
|
||||||
|
|
||||||
|
HDFS-3613. GSet prints some INFO level values, which aren't
|
||||||
|
really very useful to all (Andrew Wang via harsh)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-2982. Startup performance suffers when there are many edit log
|
HDFS-2982. Startup performance suffers when there are many edit log
|
||||||
|
|
|
@ -81,10 +81,12 @@ class BlocksMap {
|
||||||
final int exponent = e2 < 0? 0: e2 > 30? 30: e2;
|
final int exponent = e2 < 0? 0: e2 > 30? 30: e2;
|
||||||
final int c = 1 << exponent;
|
final int c = 1 << exponent;
|
||||||
|
|
||||||
LightWeightGSet.LOG.info("VM type = " + vmBit + "-bit");
|
if (LightWeightGSet.LOG.isDebugEnabled()) {
|
||||||
LightWeightGSet.LOG.info("2% max memory = " + twoPC/(1 << 20) + " MB");
|
LightWeightGSet.LOG.debug("VM type = " + vmBit + "-bit");
|
||||||
LightWeightGSet.LOG.info("capacity = 2^" + exponent
|
LightWeightGSet.LOG.debug("2% max memory = " + twoPC/(1 << 20) + " MB");
|
||||||
+ " = " + c + " entries");
|
LightWeightGSet.LOG.debug("capacity = 2^" + exponent
|
||||||
|
+ " = " + c + " entries");
|
||||||
|
}
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,9 @@ public class LightWeightGSet<K, E extends K> implements GSet<K, E> {
|
||||||
*/
|
*/
|
||||||
public LightWeightGSet(final int recommended_length) {
|
public LightWeightGSet(final int recommended_length) {
|
||||||
final int actual = actualArrayLength(recommended_length);
|
final int actual = actualArrayLength(recommended_length);
|
||||||
LOG.info("recommended=" + recommended_length + ", actual=" + actual);
|
if (LOG.isDebugEnabled()) {
|
||||||
|
LOG.debug("recommended=" + recommended_length + ", actual=" + actual);
|
||||||
|
}
|
||||||
|
|
||||||
entries = new LinkedElement[actual];
|
entries = new LinkedElement[actual];
|
||||||
hash_mask = entries.length - 1;
|
hash_mask = entries.length - 1;
|
||||||
|
|
Loading…
Reference in New Issue