svn merge -c 1354093. FIXES: HADOOP-8129. ViewFileSystemTestSetup setupForViewFileSystem is erring (Ahmed Radwan and Ravi Prakash via bobby)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1354096 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f753503beb
commit
f16e379b47
|
@ -573,6 +573,9 @@ Release 0.23.3 - UNRELEASED
|
||||||
HADOOP-8495. Update Netty to avoid leaking file descriptors during shuffle
|
HADOOP-8495. Update Netty to avoid leaking file descriptors during shuffle
|
||||||
(Jason Lowe via tgraves)
|
(Jason Lowe via tgraves)
|
||||||
|
|
||||||
|
HADOOP-8129. ViewFileSystemTestSetup setupForViewFileSystem is erring
|
||||||
|
(Ahmed Radwan and Ravi Prakash via bobby)
|
||||||
|
|
||||||
Release 0.23.2 - UNRELEASED
|
Release 0.23.2 - UNRELEASED
|
||||||
|
|
||||||
NEW FEATURES
|
NEW FEATURES
|
||||||
|
|
|
@ -51,7 +51,19 @@ public class ViewFileSystemTestSetup {
|
||||||
/**
|
/**
|
||||||
* create the test root on local_fs - the mount table will point here
|
* create the test root on local_fs - the mount table will point here
|
||||||
*/
|
*/
|
||||||
fsTarget.mkdirs(FileSystemTestHelper.getTestRootPath(fsTarget));
|
Path targetOfTests = FileSystemTestHelper.getTestRootPath(fsTarget);
|
||||||
|
// In case previous test was killed before cleanup
|
||||||
|
fsTarget.delete(targetOfTests, true);
|
||||||
|
fsTarget.mkdirs(targetOfTests);
|
||||||
|
|
||||||
|
// Setup a link from viewfs to targetfs for the first component of
|
||||||
|
// path of testdir.
|
||||||
|
String testDir = FileSystemTestHelper.getTestRootPath(fsTarget).toUri()
|
||||||
|
.getPath();
|
||||||
|
int indexOf2ndSlash = testDir.indexOf('/', 1);
|
||||||
|
String testDirFirstComponent = testDir.substring(0, indexOf2ndSlash);
|
||||||
|
ConfigUtil.addLink(conf, testDirFirstComponent, fsTarget.makeQualified(
|
||||||
|
new Path(testDirFirstComponent)).toUri());
|
||||||
|
|
||||||
// viewFs://home => fsTarget://home
|
// viewFs://home => fsTarget://home
|
||||||
String homeDirRoot = fsTarget.getHomeDirectory()
|
String homeDirRoot = fsTarget.getHomeDirectory()
|
||||||
|
|
Loading…
Reference in New Issue