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

This commit is contained in:
Akira Ajisaka 2015-12-11 16:18:30 +09:00
parent 7f393a6f61
commit eee0cf4611
2 changed files with 4 additions and 0 deletions

View File

@ -1540,6 +1540,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");