YARN-516. Fix failure in TestContainerLocalizer caused by HADOOP-9357. Contributed by Andrew Wang.
svn merge --ignore-ancestry -c 1463362 ../../trunk/ git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1463363 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ca4b6ee8c6
commit
e6608ce1c0
|
@ -112,6 +112,9 @@ Release 2.0.5-beta - UNRELEASED
|
||||||
YARN-515. Node Manager not getting the master key. (Robert Joseph Evans
|
YARN-515. Node Manager not getting the master key. (Robert Joseph Evans
|
||||||
via jlowe)
|
via jlowe)
|
||||||
|
|
||||||
|
YARN-516. Fix failure in TestContainerLocalizer caused by HADOOP-9357.
|
||||||
|
(Andrew Wang via vinodkv)
|
||||||
|
|
||||||
Release 2.0.4-alpha - UNRELEASED
|
Release 2.0.4-alpha - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -136,12 +136,16 @@ public class TestContainerLocalizer {
|
||||||
Path base = new Path(new Path(p, ContainerLocalizer.USERCACHE), appUser);
|
Path base = new Path(new Path(p, ContainerLocalizer.USERCACHE), appUser);
|
||||||
Path privcache = new Path(base, ContainerLocalizer.FILECACHE);
|
Path privcache = new Path(base, ContainerLocalizer.FILECACHE);
|
||||||
// $x/usercache/$user/filecache
|
// $x/usercache/$user/filecache
|
||||||
verify(spylfs).mkdir(eq(privcache), isA(FsPermission.class), eq(false));
|
// FileContext drops the scheme if no authority is present before passing
|
||||||
|
// the path to an AbstractFileSystem
|
||||||
|
Path privcacheAfsPath = new Path(privcache.toUri().getPath());
|
||||||
|
verify(spylfs).mkdir(eq(privcacheAfsPath), isA(FsPermission.class), eq(false));
|
||||||
Path appDir =
|
Path appDir =
|
||||||
new Path(base, new Path(ContainerLocalizer.APPCACHE, appId));
|
new Path(base, new Path(ContainerLocalizer.APPCACHE, appId));
|
||||||
// $x/usercache/$user/appcache/$appId/filecache
|
// $x/usercache/$user/appcache/$appId/filecache
|
||||||
Path appcache = new Path(appDir, ContainerLocalizer.FILECACHE);
|
Path appcache = new Path(appDir, ContainerLocalizer.FILECACHE);
|
||||||
verify(spylfs).mkdir(eq(appcache), isA(FsPermission.class), eq(false));
|
Path appcacheAfsPath = new Path(appcache.toUri().getPath());
|
||||||
|
verify(spylfs).mkdir(eq(appcacheAfsPath), isA(FsPermission.class), eq(false));
|
||||||
}
|
}
|
||||||
|
|
||||||
// verify tokens read at expected location
|
// verify tokens read at expected location
|
||||||
|
|
Loading…
Reference in New Issue