YARN-3349. Treat all exceptions as failure in TestFSRMStateStore#testFSRMStateStoreClientRetry. Contributed by Zhihai Xu.
This commit is contained in:
parent
2681ed9698
commit
7522a643fa
|
@ -772,6 +772,9 @@ Release 2.7.0 - UNRELEASED
|
|||
YARN-1453. [JDK8] Fix Javadoc errors caused by incorrect or illegal tags in
|
||||
doc comments. (Akira AJISAKA, Andrew Purtell, and Allen Wittenauer via ozawa)
|
||||
|
||||
YARN-3349. Treat all exceptions as failure in
|
||||
TestFSRMStateStore#testFSRMStateStoreClientRetry. (Zhihai Xu via ozawa)
|
||||
|
||||
Release 2.6.0 - 2014-11-18
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -100,11 +100,11 @@ public class TestFSRMStateStore extends RMStateStoreTestBase {
|
|||
workingDirPathURI.toString());
|
||||
conf.set(YarnConfiguration.FS_RM_STATE_STORE_RETRY_POLICY_SPEC,
|
||||
"100,6000");
|
||||
conf.setInt(YarnConfiguration.FS_RM_STATE_STORE_NUM_RETRIES, 5);
|
||||
conf.setInt(YarnConfiguration.FS_RM_STATE_STORE_NUM_RETRIES, 8);
|
||||
conf.setLong(YarnConfiguration.FS_RM_STATE_STORE_RETRY_INTERVAL_MS,
|
||||
900L);
|
||||
this.store = new TestFileSystemRMStore(conf);
|
||||
Assert.assertEquals(store.getNumRetries(), 5);
|
||||
Assert.assertEquals(store.getNumRetries(), 8);
|
||||
Assert.assertEquals(store.getRetryInterval(), 900L);
|
||||
return store;
|
||||
}
|
||||
|
@ -277,12 +277,7 @@ public class TestFSRMStateStore extends RMStateStoreTestBase {
|
|||
ApplicationStateData.newInstance(111, 111, "user", null,
|
||||
RMAppState.ACCEPTED, "diagnostics", 333));
|
||||
} catch (Exception e) {
|
||||
// TODO 0 datanode exception will not be retried by dfs client, fix
|
||||
// that separately.
|
||||
if (!e.getMessage().contains("could only be replicated" +
|
||||
" to 0 nodes instead of minReplication (=1)")) {
|
||||
assertionFailedInThread.set(true);
|
||||
}
|
||||
assertionFailedInThread.set(true);
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue