Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HDFS-16184. De-flake TestBlockScanner#testSkipRecentAccessFile
Browse files Browse the repository at this point in the history
virajjasani committed Aug 24, 2021

Verified

This commit was signed with the committer’s verified signature.
fiji-flo Florian Dieminger
1 parent 9084c72 commit 32976fb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1004,6 +1004,8 @@ public void testSkipRecentAccessFile() throws Exception {
TestScanResultHandler.getInfo(ctx.volumes.get(0));
synchronized (info) {
info.shouldRun = true;
info.sem = new Semaphore(1);
info.sem.acquire();
info.notify();
}
try {
@@ -1017,6 +1019,7 @@ public void testSkipRecentAccessFile() throws Exception {
LOG.debug("Timeout for all files are accessed in last period.");
}
synchronized (info) {
info.sem.release();
info.shouldRun = false;
info.notify();
}

0 comments on commit 32976fb

Please sign in to comment.