Skip to content

[dev] Wait for Vector Set replay in tests#1723

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

[dev] Wait for Vector Set replay in tests#1723
kevin-montrose merged 6 commits into
devfrom
users/kmontrose/vectorSetTestsWaitOnSync-dev

Conversation

@kevin-montrose

Copy link
Copy Markdown
Contributor

Dev targeting equivalent of #1722

Copilot AI review requested due to automatic review settings April 21, 2026 20:47

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 utilities so that “replica AOF sync” waits not only for matching AOF offsets, but also for async Vector Set replication replay to quiesce—addressing timing gaps where vector operations may still be pending after offsets match.

Changes:

  • After WaitForReplicaAofSync observes equal replication offsets, it now waits for Vector Set replay quiescence on the replica.
  • Introduces WaitForVectorSetReplayQuiescence to call VectorManager.WaitForVectorOperationsToComplete() on the replica.
  • Uses UnsafeAccessor to access GarnetServer.storeWrapper from tests in order to reach DefaultDatabase.VectorManager.

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

Comment thread test/Garnet.test.cluster/ClusterTestUtils.cs
Comment thread test/Garnet.test.cluster/ClusterTestUtils.cs Outdated
Comment thread test/Garnet.test.cluster/ClusterTestUtils.cs
…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 merged commit 9a7434f into dev Apr 22, 2026
23 checks passed
@kevin-montrose kevin-montrose deleted the users/kmontrose/vectorSetTestsWaitOnSync-dev branch April 22, 2026 20:38
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