HBASE-11443 TestIOFencing#testFencingAroundCompactionAfterWALSync times out

This commit is contained in:
Ted Yu 2014-06-30 22:28:16 +00:00
parent 5af264c5b5
commit 34cd00b291
1 changed files with 11 additions and 0 deletions

View File

@ -177,6 +177,17 @@ public class TestIOFencing {
r = (CompactionBlockerRegion) region;
}
@Override
protected void completeCompaction(final Collection<StoreFile> compactedFiles,
boolean removeFiles) throws IOException {
try {
r.compactionsWaiting.countDown();
r.compactionsBlocked.await();
} catch (InterruptedException ex) {
throw new IOException(ex);
}
super.completeCompaction(compactedFiles, removeFiles);
}
@Override
protected void completeCompaction(Collection<StoreFile> compactedFiles) throws IOException {
try {