Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flaky test SegmentReplicationWithNodeToNodeIndexShardTests#testRe…
…plicaClosesWhileReplicating_AfterGetCheckpoint (#12695) (#12741) This fixes a race condition in the test where the primary shard will still have an open file ref while shutting down. This happens because we are fetching file refs inside the resolveCheckpointInfoResponseListener method right after calling beforeIndexShardClosed. BeforeIndexShardClosed will resolve replication listeners immediately and leave a possibility of the primary attempting shut down before those refs are closed. We can resolve this using latches, but this test really doesn't need to simulate a primary response at all so removed it entirely. (cherry picked from commit 5e2034c) Signed-off-by: Marc Handalian <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information