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
|
||||
Robinson via tgraves)
|
||||
|
||||
HADOOP-8692. TestLocalDirAllocator fails intermittently with JDK7
|
||||
(Trevor Robinson via tgraves)
|
||||
|
||||
Release 0.23.2 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -343,6 +343,7 @@ public void testGetLocalPathToRead() throws IOException {
|
||||
@Test
|
||||
public void testRemoveContext() throws IOException {
|
||||
String dir = buildBufferDir(ROOT, 0);
|
||||
try {
|
||||
String contextCfgItemName = "application_1340842292563_0004.app.cache.dirs";
|
||||
conf.set(contextCfgItemName, dir);
|
||||
LocalDirAllocator localDirAllocator = new LocalDirAllocator(
|
||||
@ -351,6 +352,9 @@ public void testRemoveContext() throws IOException {
|
||||
assertTrue(LocalDirAllocator.isContextValid(contextCfgItemName));
|
||||
LocalDirAllocator.removeContext(contextCfgItemName);
|
||||
assertFalse(LocalDirAllocator.isContextValid(contextCfgItemName));
|
||||
} finally {
|
||||
rmBufferDirs();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user