You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2022/04/20 21:06:11 UTC

[GitHub] [hadoop] xinglin commented on a diff in pull request #4144: HADOOP-18172: Change scope of InodeTree and its member methods to make them accessible from outside package.

xinglin commented on code in PR #4144:
URL: https://github.com/apache/hadoop/pull/4144#discussion_r854554335


##########
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java:
##########
@@ -410,7 +410,16 @@ private boolean hasFallbackLink() {
     return rootFallbackLink != null;
   }
 
-  protected INodeLink<T> getRootFallbackLink() {
+  /**
+   * @return true if the root represented as internalDir. In LinkMergeSlash,
+   * there will be root to root mapping. So, root does not represent as
+   * internalDir.
+   */
+  public boolean isRootInternalDir() {

Review Comment:
   We found HDFS-15529 added this method (isRootInternalDir) with a few other changes to getChildFileSystem in ViewFileSystem. Unfortunately, new changes have been made since HDFS-15529 and made its pull request out-of-date (targetFileSystem in InodeLink is now private, instead of package private). Besides, file TestViewFileSystemOverloadSchemeWithHdfsScheme.java does not exist in branch-2.10 yet. So, we decide to leave out isRootInternalDir() for this PR. 
   
   PR for HDFS-15529:
   https://github.com/apache/hadoop/pull/2234



-- 
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: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org