HDFS-2706. Use configuration for blockInvalidateLimit if it is set.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1221106 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a61a18cc09
commit
3503d9a4a8
|
@ -283,6 +283,9 @@ Release 0.23.1 - UNRELEASED
|
||||||
HDFS-2553. Fix BlockPoolSliceScanner spinning in a tight loop (Uma
|
HDFS-2553. Fix BlockPoolSliceScanner spinning in a tight loop (Uma
|
||||||
Maheswara Rao G via todd)
|
Maheswara Rao G via todd)
|
||||||
|
|
||||||
|
HDFS-2706. Use configuration for blockInvalidateLimit if it is set.
|
||||||
|
(szetszwo)
|
||||||
|
|
||||||
Release 0.23.0 - 2011-11-01
|
Release 0.23.0 - 2011-11-01
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -155,8 +155,10 @@ public class DatanodeManager {
|
||||||
DFSConfigKeys.DFS_NAMENODE_HEARTBEAT_RECHECK_INTERVAL_DEFAULT); // 5 minutes
|
DFSConfigKeys.DFS_NAMENODE_HEARTBEAT_RECHECK_INTERVAL_DEFAULT); // 5 minutes
|
||||||
this.heartbeatExpireInterval = 2 * heartbeatRecheckInterval
|
this.heartbeatExpireInterval = 2 * heartbeatRecheckInterval
|
||||||
+ 10 * 1000 * heartbeatIntervalSeconds;
|
+ 10 * 1000 * heartbeatIntervalSeconds;
|
||||||
this.blockInvalidateLimit = Math.max(20*(int)(heartbeatIntervalSeconds),
|
final int blockInvalidateLimit = Math.max(20*(int)(heartbeatIntervalSeconds),
|
||||||
DFSConfigKeys.DFS_BLOCK_INVALIDATE_LIMIT_DEFAULT);
|
DFSConfigKeys.DFS_BLOCK_INVALIDATE_LIMIT_DEFAULT);
|
||||||
|
this.blockInvalidateLimit = conf.getInt(
|
||||||
|
DFSConfigKeys.DFS_BLOCK_INVALIDATE_LIMIT_KEY, blockInvalidateLimit);
|
||||||
LOG.info(DFSConfigKeys.DFS_BLOCK_INVALIDATE_LIMIT_KEY
|
LOG.info(DFSConfigKeys.DFS_BLOCK_INVALIDATE_LIMIT_KEY
|
||||||
+ "=" + this.blockInvalidateLimit);
|
+ "=" + this.blockInvalidateLimit);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue