jianghuazhu commented on a change in pull request #3417:
URL: https://github.com/apache/hadoop/pull/3417#discussion_r711694180
##########
File path:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeMap.java
##########
@@ -191,8 +202,28 @@ static INodeMap newInstance(INodeDirectory rootDir,
return map.iterator();
}
- private INodeMap(INodeDirectory rootDir, FSNamesystem ns) {
+ public Set<INode> rangeKeys() {
+ return ((PartitionedGSet)map).entryKeySet();
+ }
+
+ private static void setStaticField(Configuration conf) {
+ numSpaceKeyDepth =
conf.getInt(DFSConfigKeys.DFS_NAMENODE_INOD_NAMESPACE_KEY_DEPTH,
+ DFSConfigKeys.DFS_NAMENODE_INOD_NAMESPACE_KEY_DEPTH_DEFAULT);
+ if (numSpaceKeyDepth < 1) {
+ numSpaceKeyDepth =
DFSConfigKeys.DFS_NAMENODE_INOD_NAMESPACE_KEY_DEPTH_DEFAULT;
+ }
+
+ numRanges = conf.getLong(DFSConfigKeys.DFS_NAMENODE_INOD_NUM_RANGES,
Review comment:
Thanks @xinglin for the comment.
I will update it later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]