HADOOP-14427. Avoid reloading of Configuration in ViewFileSystem creation. Contributed by Vinayakumar B

This commit is contained in:
Mingliang Liu 2017-05-17 13:12:14 -07:00
parent d4aa9e3c69
commit eb7791b474
1 changed files with 4 additions and 4 deletions

View File

@ -195,7 +195,7 @@ public class ViewFileSystem extends FileSystem {
protected
FileSystem getTargetFileSystem(final INodeDir<FileSystem> dir)
throws URISyntaxException {
return new InternalDirOfViewFs(dir, creationTime, ugi, myUri);
return new InternalDirOfViewFs(dir, creationTime, ugi, myUri, config);
}
@Override
@ -905,11 +905,11 @@ public class ViewFileSystem extends FileSystem {
final URI myUri;
public InternalDirOfViewFs(final InodeTree.INodeDir<FileSystem> dir,
final long cTime, final UserGroupInformation ugi, URI uri)
throws URISyntaxException {
final long cTime, final UserGroupInformation ugi, URI uri,
Configuration config) throws URISyntaxException {
myUri = uri;
try {
initialize(myUri, new Configuration());
initialize(myUri, config);
} catch (IOException e) {
throw new RuntimeException("Cannot occur");
}