This is an automated email from the ASF dual-hosted git repository.
virajith pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new 7ae328949e4 HADOOP-18172: Changed scope for
isRootInternalDir/getRootFallbackLink for InodeTree (#4106)
7ae328949e4 is described below
commit 7ae328949e41913a574a93d944d215f11eb69a20
Author: Xing Lin <[email protected]>
AuthorDate: Tue Apr 19 22:47:02 2022 -0700
HADOOP-18172: Changed scope for isRootInternalDir/getRootFallbackLink for
InodeTree (#4106)
Co-authored-by: Xing Lin <[email protected]>
(cherry picked from commit 98b9c435f24c76e3629f6d8e9c14473b46fe6a0e)
---
.../src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
index 6753997127e..5093ce61370 100644
---
a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
+++
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
@@ -61,7 +61,7 @@ import org.slf4j.LoggerFactory;
@InterfaceAudience.Private
@InterfaceStability.Unstable
-abstract class InodeTree<T> {
+public abstract class InodeTree<T> {
private static final Logger LOGGER =
LoggerFactory.getLogger(InodeTree.class.getName());
@@ -458,11 +458,11 @@ abstract class InodeTree<T> {
* there will be root to root mapping. So, root does not represent as
* internalDir.
*/
- protected boolean isRootInternalDir() {
+ public boolean isRootInternalDir() {
return root.isInternalDir();
}
- protected INodeLink<T> getRootFallbackLink() {
+ public INodeLink<T> getRootFallbackLink() {
Preconditions.checkState(root.isInternalDir());
return rootFallbackLink;
}
@@ -743,7 +743,7 @@ abstract class InodeTree<T> {
* If the input pathname leads to an internal mount-table entry then
* the target file system is one that represents the internal inode.
*/
- static class ResolveResult<T> {
+ public static class ResolveResult<T> {
final ResultKind kind;
final T targetFileSystem;
final String resolvedPath;
@@ -778,7 +778,7 @@ abstract class InodeTree<T> {
* @return ResolveResult which allows further resolution of the remaining
path
* @throws IOException
*/
- ResolveResult<T> resolve(final String p, final boolean resolveLastComponent)
+ public ResolveResult<T> resolve(final String p, final boolean
resolveLastComponent)
throws IOException {
ResolveResult<T> resolveResult = null;
String[] path = breakIntoPathComponents(p);
@@ -958,7 +958,7 @@ abstract class InodeTree<T> {
* @return home dir value from mount table; null if no config value
* was found.
*/
- String getHomeDirPrefixValue() {
+ public String getHomeDirPrefixValue() {
return homedirPrefix;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]