HDFS-9073. Fix failures in TestLazyPersistLockedMemory testReleaseOnEviction(). (J.Andreina via stevel)

This commit is contained in:
Steve Loughran 2015-09-16 10:11:59 +01:00
parent 4477643749
commit 08024d1b0b
2 changed files with 4 additions and 0 deletions

View File

@ -1355,6 +1355,9 @@ Release 2.8.0 - UNRELEASED
HDFS-9072. Fix random failures in TestJMXGet.
(J.Andreina via stevel)
HDFS-9073. Fix failures in TestLazyPersistLockedMemory
testReleaseOnEviction(). (J.Andreina via stevel)
Release 2.7.2 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -480,6 +480,7 @@ public abstract class LazyPersistTestCase {
protected final void verifyRamDiskJMXMetric(String metricName,
long expectedValue) throws Exception {
waitForMetric(metricName, (int)expectedValue);
assertEquals(expectedValue, Integer.parseInt(jmx.getValue(metricName)));
}