git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1532917 13f79535-47bb-0310-9956-ffa450edef68
@@ -19,6 +19,9 @@ Release 0.23.10 - UNRELEASED
HDFS-4329. DFSShell issues with directories with spaces in name (Cristina
L. Abad via jeagles)
+ HDFS-5346. Avoid unnecessary call to getNumLiveDataNodes() for each block
+ during IBR processing (Ravi Prakash via kihwal)
+
OPTIMIZATIONS
BUG FIXES
@@ -3094,7 +3094,7 @@ public class FSNamesystem implements Namesystem, FSClusterStats,
*/
private boolean needEnter() {
return (threshold != 0 && blockSafe < blockThreshold) ||
- (getNumLiveDataNodes() < datanodeThreshold) ||
+ (datanodeThreshold != 0 && getNumLiveDataNodes() < datanodeThreshold) ||
(!nameNodeHasResourcesAvailable());
}