HBASE-15959 Fix flaky test TestRegionServerMetrics.testMobMetrics (Huaxiang Sun and Jingcheng Du)
This commit is contained in:
parent
d9463bcce0
commit
a7172d5611
|
@ -451,6 +451,10 @@ public class TestRegionServerMetrics {
|
||||||
admin.flush(tableName);
|
admin.flush(tableName);
|
||||||
}
|
}
|
||||||
region.getTableDesc().getFamily(cf).setMobThreshold(0);
|
region.getTableDesc().getFamily(cf).setMobThreshold(0);
|
||||||
|
|
||||||
|
// closing the region forces the compaction.discharger to archive the compacted hfiles
|
||||||
|
((HRegion) region).close();
|
||||||
|
|
||||||
// metrics are reset by the region initialization
|
// metrics are reset by the region initialization
|
||||||
((HRegion) region).initialize();
|
((HRegion) region).initialize();
|
||||||
region.compact(true);
|
region.compact(true);
|
||||||
|
|
Loading…
Reference in New Issue