HADOOP-17047. TODO comment exist in trunk while related issue HADOOP-6223 is already fixed. Contributed by Rungroj Maipradit

This commit is contained in:
Mingliang Liu 2020-06-08 11:28:36 -07:00
parent 9f242c215e
commit 0c25131ca4
No known key found for this signature in database
GPG Key ID: BC2FB8C6908A0C16
1 changed files with 3 additions and 3 deletions

View File

@ -66,6 +66,7 @@ import org.apache.hadoop.security.token.Token;
import org.apache.hadoop.util.ShutdownHookManager; import org.apache.hadoop.util.ShutdownHookManager;
import com.google.common.base.Preconditions; import com.google.common.base.Preconditions;
import com.google.common.annotations.VisibleForTesting;
import org.apache.htrace.core.Tracer; import org.apache.htrace.core.Tracer;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -507,10 +508,9 @@ public class FileContext implements PathCapabilities {
return getFileContext(FsConstants.LOCAL_FS_URI, aConf); return getFileContext(FsConstants.LOCAL_FS_URI, aConf);
} }
/* This method is needed for tests. */ @VisibleForTesting
@InterfaceAudience.Private @InterfaceAudience.Private
@InterfaceStability.Unstable /* return type will change to AFS once @InterfaceStability.Unstable
HADOOP-6223 is completed */
public AbstractFileSystem getDefaultFileSystem() { public AbstractFileSystem getDefaultFileSystem() {
return defaultFS; return defaultFS;
} }