HADOOP-12602. TestMetricsSystemImpl#testQSize occasionally fails. Contributed by Masatake Iwasaki.

(cherry picked from commit eee0cf4611)
(cherry picked from commit 5047ee56af)
This commit is contained in:
Akira Ajisaka 2015-12-11 16:18:30 +09:00
parent c9be259f26
commit 02f666b324
2 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,9 @@ Release 2.7.3 - UNRELEASED
HADOOP-12565. Replace DSA with RSA for SSH key type in SingleCluster.md. HADOOP-12565. Replace DSA with RSA for SSH key type in SingleCluster.md.
(Mingliang Liu via aajisaka) (Mingliang Liu via aajisaka)
HADOOP-12602. TestMetricsSystemImpl#testQSize occasionally fails.
(Masatake Iwasaki via aajisaka)
Release 2.7.2 - UNRELEASED Release 2.7.2 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -441,6 +441,7 @@ public class TestMetricsSystemImpl {
@Test @Test
public void testQSize() throws Exception { public void testQSize() throws Exception {
new ConfigBuilder().add("*.period", 8) new ConfigBuilder().add("*.period", 8)
.add("*.queue.capacity", 2)
.add("test.sink.test.class", TestSink.class.getName()) .add("test.sink.test.class", TestSink.class.getName())
.save(TestMetricsConfig.getTestFilename("hadoop-metrics2-test")); .save(TestMetricsConfig.getTestFilename("hadoop-metrics2-test"));
MetricsSystemImpl ms = new MetricsSystemImpl("Test"); MetricsSystemImpl ms = new MetricsSystemImpl("Test");