diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 2000f39104d..dcd73b45d3a 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -175,9 +175,6 @@ Release 2.0.5-beta - UNRELEASED YARN-515. Node Manager not getting the master key. (Robert Joseph Evans via jlowe) - YARN-516. Fix failure in TestContainerLocalizer caused by HADOOP-9357. - (Andrew Wang via vinodkv) - YARN-382. SchedulerUtils improve way normalizeRequest sets the resource capabilities. (Zhijie Shen via bikas) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/TestContainerLocalizer.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/TestContainerLocalizer.java index f16c68c11ef..829eba4e1c0 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/TestContainerLocalizer.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/TestContainerLocalizer.java @@ -136,16 +136,12 @@ public class TestContainerLocalizer { Path base = new Path(new Path(p, ContainerLocalizer.USERCACHE), appUser); Path privcache = new Path(base, ContainerLocalizer.FILECACHE); // $x/usercache/$user/filecache - // 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)); + verify(spylfs).mkdir(eq(privcache), isA(FsPermission.class), eq(false)); Path appDir = new Path(base, new Path(ContainerLocalizer.APPCACHE, appId)); // $x/usercache/$user/appcache/$appId/filecache Path appcache = new Path(appDir, ContainerLocalizer.FILECACHE); - Path appcacheAfsPath = new Path(appcache.toUri().getPath()); - verify(spylfs).mkdir(eq(appcacheAfsPath), isA(FsPermission.class), eq(false)); + verify(spylfs).mkdir(eq(appcache), isA(FsPermission.class), eq(false)); } // verify tokens read at expected location