Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MINOR: Fix flakiness in state updater unit tests (#16562)
Unit test shouldRestoreSingleActiveStatefulTask() in DefaultStateUpdaterTest is flaky. The flakiness comes from the fact that the state updater thread could call the first time changelogReader.allChangelogsCompleted() before it calls the first time changelogReader.completedChangelogs(). That happens, if runOnce() is run before the state updater thread reads a task from the input queue. This commit fixes the flakiness, by making stubbing changelogReader.allChangelogsCompleted() depend on stubbing changelogReader.completedChangelogs(). Reviewers: Lucas Brutschy <[email protected]>, Matthias J. Sax <[email protected]>
- Loading branch information