YARN-3459. Fix failiure of TestLog4jWarningErrorMetricsAppender. (Varun Vasudev via wangda)

This commit is contained in:
Wangda Tan 2015-04-08 10:57:48 -07:00
parent f4b3fc5621
commit 7af086a515
2 changed files with 4 additions and 1 deletions

View File

@ -156,6 +156,9 @@ Release 2.8.0 - UNRELEASED
YARN-3457. NPE when NodeManager.serviceInit fails and stopRecoveryStore called.
(Bibin A Chundatt via ozawa)
YARN-3459. Fix failiure of TestLog4jWarningErrorMetricsAppender.
(Varun Vasudev via wangda)
Release 2.7.0 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -84,7 +84,7 @@ public class TestLog4jWarningErrorMetricsAppender {
Assert.assertEquals(1, appender.getErrorCounts(cutoff).get(0).longValue());
Assert.assertEquals(1, appender.getErrorMessagesAndCounts(cutoff).get(0)
.size());
Thread.sleep(2000);
Thread.sleep(3000);
Assert.assertEquals(1, appender.getErrorCounts(cutoff).size());
Assert.assertEquals(0, appender.getErrorCounts(cutoff).get(0).longValue());
Assert.assertEquals(0, appender.getErrorMessagesAndCounts(cutoff).get(0)