Fix the flakiness in getLockedIntervals test (#12172)

Fix the flakiness in getLockedIntervals test
This commit is contained in:
Abhishek Agarwal 2022-02-17 12:08:46 +05:30 committed by GitHub
parent 5794331eb1
commit 575874705f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -360,7 +360,10 @@ public class ITIndexerTest extends AbstractITBatchIndexTest
Collections.singletonList(Intervals.of("2013-08-31/2013-09-02"))
);
waitForAllTasksToCompleteForDataSource(datasourceName);
ITRetryUtil.retryUntilTrue(
() -> coordinator.areSegmentsLoaded(datasourceName),
"Segment Load"
);
}
}