YARN-6217. TestLocalCacheDirectoryManager test timeout is too aggressive. Contributed by Miklos Szegedi

(cherry picked from commit 4a8e304502)
This commit is contained in:
Jason Lowe 2017-03-17 14:06:35 -05:00
parent 7cc88eca43
commit 75e6b7428e
1 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ import org.junit.Test;
public class TestLocalCacheDirectoryManager { public class TestLocalCacheDirectoryManager {
@Test(timeout = 10000) @Test
public void testHierarchicalSubDirectoryCreation() { public void testHierarchicalSubDirectoryCreation() {
// setting per directory file limit to 1. // setting per directory file limit to 1.
YarnConfiguration conf = new YarnConfiguration(); YarnConfiguration conf = new YarnConfiguration();
@ -73,7 +73,7 @@ public class TestLocalCacheDirectoryManager {
Assert.assertEquals(testPath2, hDir.getRelativePathForLocalization()); Assert.assertEquals(testPath2, hDir.getRelativePathForLocalization());
} }
@Test(timeout = 10000) @Test
public void testMinimumPerDirectoryFileLimit() { public void testMinimumPerDirectoryFileLimit() {
YarnConfiguration conf = new YarnConfiguration(); YarnConfiguration conf = new YarnConfiguration();
conf.set(YarnConfiguration.NM_LOCAL_CACHE_MAX_FILES_PER_DIRECTORY, "1"); conf.set(YarnConfiguration.NM_LOCAL_CACHE_MAX_FILES_PER_DIRECTORY, "1");
@ -98,7 +98,7 @@ public class TestLocalCacheDirectoryManager {
} }
@Test(timeout = 1000) @Test
public void testDirectoryStateChangeFromFullToNonFull() { public void testDirectoryStateChangeFromFullToNonFull() {
YarnConfiguration conf = new YarnConfiguration(); YarnConfiguration conf = new YarnConfiguration();
conf.set(YarnConfiguration.NM_LOCAL_CACHE_MAX_FILES_PER_DIRECTORY, "40"); conf.set(YarnConfiguration.NM_LOCAL_CACHE_MAX_FILES_PER_DIRECTORY, "40");