Currently, the test calls invalidateCollectionEntry_LINEARIZABLE before hitting the failpoint, which triggers a blocking refresh on the next access. There is a race between the async refresh in the background thread and the invalidation of the cache/cancellation of the refresh at the end of the test in the main thread.
This test can be rewritten to use a mock error response with a future that's guaranteed to finish with a response or error.
- is related to
-
SERVER-102923 Introduce the RoutingContext API
-
- Closed
-