Merged
Conversation
…icely with Vector Sets asynchronous replication / cleanup
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aims to reduce flakiness in Vector Set cluster tests by removing WaitForReplicaAofSync calls that appear to be unreliable when VADD replay and post-DEL|UNLINK cleanup are asynchronous.
Changes:
- Removed
WaitForReplicaAofSyncwaits fromMigrateVectorSetWhileModifyingAsyncafter slot migration and before post-write validation.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
… to complete; harden tests a bit
vazois
approved these changes
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Looking into some recent failures, and getting some (rare) local reproductions, these failures seem linked to
WaitForReplicaAofSync.My current theory is that the asynchronous replay of
VADDand the background cleanup afterDEL|UNLINKconfuses this test function. Not all tests trigger it, butMigrateVectorSetWhileModifyingAsyncseem pretty prone, so removing these calls which don't appear* strictly necessary.Some null refs still happen after this change... looking at possible use-after-Dispose cases, also in replication.
Found a fixed a bug in
AofProcessor.Disposenot shutting downVectorManagerreplication tasks.WaitForMigrationCleanuptimeout, but Vector Set's don't appear to be at fault)Doing a bit more digging into
WaitForMigrationCleanupfailures...*These tests grew from existing cluster tests, so the "wait" calls were not added with any rigor.