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

(cherry picked from commit 7af086a515)
This commit is contained in:
Wangda Tan 2015-04-08 10:57:48 -07:00
parent ac32fa187c
commit 97244b143c
2 changed files with 4 additions and 1 deletions

View File

@ -108,6 +108,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)