HDFS-16884. Fix TestFsDatasetImpl#testConcurrentWriteAndDeleteBlock failed (#5280)
Reviewed-by: Takanobu Asanuma <tasanuma@apache.org> Signed-off-by: Tao Li <tomscut@apache.org>
This commit is contained in:
parent
4cf304de45
commit
e3b09b7512
@ -662,6 +662,9 @@ public void run() {
|
||||
for (Future<?> f : futureList) {
|
||||
f.get();
|
||||
}
|
||||
// Wait for the async deletion task finish.
|
||||
GenericTestUtils.waitFor(() -> dataset.asyncDiskService.countPendingDeletions() == 0,
|
||||
100, 10000);
|
||||
for (String bpid : dataset.volumeMap.getBlockPoolList()) {
|
||||
assertEquals(numBlocks / 2, dataset.volumeMap.size(bpid));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user