Skip to content

Wait for Vector Set replay in tests#1722

Merged
kevin-montrose merged 6 commits into
mainfrom
users/kmontrose/vectorSetTestsWaitOnSync
Apr 22, 2026
Merged

Wait for Vector Set replay in tests#1722
kevin-montrose merged 6 commits into
mainfrom
users/kmontrose/vectorSetTestsWaitOnSync

Conversation

@kevin-montrose

@kevin-montrose kevin-montrose commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

When WaitForReplicaAofSync is called in a test, also call VectorManager.WaitForVectorOperationsToComplete() on relevant replica.

dev equivalent #1723 1723

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates cluster test synchronization to account for asynchronous Vector Set replication replay, so tests that wait for AOF sync also wait for vector operations to quiesce on the replica.

Changes:

  • Extend WaitForReplicaAofSync to additionally wait for Vector Set replay completion on the replica.
  • Add a helper (WaitForVectorSetReplayQuiescence) that accesses the server’s StoreWrapper and calls VectorManager.WaitForVectorOperationsToComplete().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/Garnet.test.cluster/ClusterTestUtils.cs Outdated
Comment thread test/Garnet.test.cluster/ClusterTestUtils.cs Outdated
Comment thread test/Garnet.test.cluster/ClusterTestUtils.cs Outdated
…ions aren't considered done before they are applied; remove test helper that waited explicitly on VectorSetManager
…ome, but that's already kinda weird and allows higher throughput for vector set ops
@kevin-montrose kevin-montrose requested a review from badrishc April 22, 2026 17:46
@kevin-montrose kevin-montrose merged commit f86c943 into main Apr 22, 2026
27 checks passed
@kevin-montrose kevin-montrose deleted the users/kmontrose/vectorSetTestsWaitOnSync branch April 22, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants