HADOOP-8692. TestLocalDirAllocator fails intermittently with JDK7 (Trevor Robinson via tgraves)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1374312 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8fa10b184e
commit
fb60303c8e
|
@ -916,6 +916,9 @@ Release 0.23.3 - UNRELEASED
|
||||||
HADOOP-8390. TestFileSystemCanonicalization fails with JDK7 (Trevor
|
HADOOP-8390. TestFileSystemCanonicalization fails with JDK7 (Trevor
|
||||||
Robinson via tgraves)
|
Robinson via tgraves)
|
||||||
|
|
||||||
|
HADOOP-8692. TestLocalDirAllocator fails intermittently with JDK7
|
||||||
|
(Trevor Robinson via tgraves)
|
||||||
|
|
||||||
Release 0.23.2 - UNRELEASED
|
Release 0.23.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -343,6 +343,7 @@ public class TestLocalDirAllocator {
|
||||||
@Test
|
@Test
|
||||||
public void testRemoveContext() throws IOException {
|
public void testRemoveContext() throws IOException {
|
||||||
String dir = buildBufferDir(ROOT, 0);
|
String dir = buildBufferDir(ROOT, 0);
|
||||||
|
try {
|
||||||
String contextCfgItemName = "application_1340842292563_0004.app.cache.dirs";
|
String contextCfgItemName = "application_1340842292563_0004.app.cache.dirs";
|
||||||
conf.set(contextCfgItemName, dir);
|
conf.set(contextCfgItemName, dir);
|
||||||
LocalDirAllocator localDirAllocator = new LocalDirAllocator(
|
LocalDirAllocator localDirAllocator = new LocalDirAllocator(
|
||||||
|
@ -351,6 +352,9 @@ public class TestLocalDirAllocator {
|
||||||
assertTrue(LocalDirAllocator.isContextValid(contextCfgItemName));
|
assertTrue(LocalDirAllocator.isContextValid(contextCfgItemName));
|
||||||
LocalDirAllocator.removeContext(contextCfgItemName);
|
LocalDirAllocator.removeContext(contextCfgItemName);
|
||||||
assertFalse(LocalDirAllocator.isContextValid(contextCfgItemName));
|
assertFalse(LocalDirAllocator.isContextValid(contextCfgItemName));
|
||||||
|
} finally {
|
||||||
|
rmBufferDirs();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue