You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by um...@apache.org on 2020/06/27 23:08:24 UTC
[hadoop] branch branch-3.1 updated: HDFS-15396. Fix
TestViewFileSystemOverloadSchemeHdfsFileSystemContract#testListStatusRootDir.
Contributed by Ayush Saxena.
This is an automated email from the ASF dual-hosted git repository.
umamahesh pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new b720d77 HDFS-15396. Fix TestViewFileSystemOverloadSchemeHdfsFileSystemContract#testListStatusRootDir. Contributed by Ayush Saxena.
b720d77 is described below
commit b720d7770d93e67afe05beb3943913da241696d2
Author: Ayush Saxena <ay...@apache.org>
AuthorDate: Mon Jun 8 01:59:10 2020 +0530
HDFS-15396. Fix TestViewFileSystemOverloadSchemeHdfsFileSystemContract#testListStatusRootDir. Contributed by Ayush Saxena.
(cherry picked from commit a8610c15c498531bf3c011f1b0ace8eddddf61f2)
---
.../src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
index a19366e..7552c06 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
@@ -1163,6 +1163,9 @@ public class ViewFileSystem extends FileSystem {
INodeLink<FileSystem> link = (INodeLink<FileSystem>) inode;
try {
String linkedPath = link.getTargetFileSystem().getUri().getPath();
+ if("".equals(linkedPath)) {
+ linkedPath = "/";
+ }
FileStatus status =
((ChRootedFileSystem)link.getTargetFileSystem())
.getMyFs().getFileStatus(new Path(linkedPath));
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org