This is an automated email from the ASF dual-hosted git repository.
umamahesh pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 3ccc962 HDFS-15596: ViewHDFS#create(f, permission, cflags,
bufferSize, replication, blockSize, progress, checksumOpt) should not be
restricted to DFS only. (#2333). Contributed by Uma Maheswara Rao G.
3ccc962 is described below
commit 3ccc962b990f7f24e9b430b86da6f93be9ac554e
Author: Uma Maheswara Rao G <[email protected]>
AuthorDate: Thu Sep 24 07:07:48 2020 -0700
HDFS-15596: ViewHDFS#create(f, permission, cflags, bufferSize, replication,
blockSize, progress, checksumOpt) should not be restricted to DFS only.
(#2333). Contributed by Uma Maheswara Rao G.
Co-authored-by: Uma Maheswara Rao G <[email protected]>
---
.../java/org/apache/hadoop/hdfs/ViewDistributedFileSystem.java | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git
a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/ViewDistributedFileSystem.java
b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/ViewDistributedFileSystem.java
index 4fee963..2894a24 100644
---
a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/ViewDistributedFileSystem.java
+++
b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/ViewDistributedFileSystem.java
@@ -376,7 +376,6 @@ public class ViewDistributedFileSystem extends
DistributedFileSystem {
}
@Override
- //DFS specific API
public FSDataOutputStream create(final Path f, final FsPermission permission,
final EnumSet<CreateFlag> cflags, final int bufferSize,
final short replication, final long blockSize,
@@ -387,12 +386,8 @@ public class ViewDistributedFileSystem extends
DistributedFileSystem {
.create(f, permission, cflags, bufferSize, replication, blockSize,
progress, checksumOpt);
}
- ViewFileSystemOverloadScheme.MountPathInfo<FileSystem> mountPathInfo =
- this.vfs.getMountPathInfo(f, getConf());
- checkDFS(mountPathInfo.getTargetFs(), "create");
- return mountPathInfo.getTargetFs()
- .create(mountPathInfo.getPathOnTarget(), permission, cflags,
bufferSize,
- replication, blockSize, progress, checksumOpt);
+ return vfs.create(f, permission, cflags, bufferSize, replication,
blockSize,
+ progress, checksumOpt);
}
void checkDFS(FileSystem fs, String methodName) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]