Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix testSkipRefreshIfShardIsRefreshingAlready (#50856)
The test checked queue size and active count, however, ThreadPoolExecutor pulls out the request from the queue before marking the worker active, risking that we think all tasks are done when they are not. Now check on completed-tasks metric instead, which is guaranteed to be monotonic. Relates #50769
- Loading branch information