HDFS-15396. Fix TestViewFileSystemOverloadSchemeHdfsFileSystemContract#testListStatusRootDir. Contributed by Ayush Saxena.
This commit is contained in:
parent
3ca15292c5
commit
a8610c15c4
|
@ -1202,6 +1202,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));
|
||||
|
|
Loading…
Reference in New Issue