Skip to content

[DEV] Vector Set Migration Reliability Fixes#1706

Merged
kevin-montrose merged 8 commits into
devfrom
users/kmontrose/vectorSetMigrationReliabilityClean-dev
Apr 16, 2026
Merged

[DEV] Vector Set Migration Reliability Fixes#1706
kevin-montrose merged 8 commits into
devfrom
users/kmontrose/vectorSetMigrationReliabilityClean-dev

Conversation

@kevin-montrose

Copy link
Copy Markdown
Contributor

dev targeting version of #1704

Copilot AI review requested due to automatic review settings April 15, 2026 21:23

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

Improves reliability of vector set migrations and related cluster scenarios by tightening failure handling in migration scans, adjusting server shutdown sequencing, and adding test-level threadpool tuning.

Changes:

  • Abort slot migration when any scan task fails, and stop deleting keys if TransmitSlots() fails.
  • Reorder GarnetServer disposal to drain/stop servers before disposing the storage provider.
  • Add test harness threadpool minimum tuning and allow SimpleSetupCluster to be configured with/without TLS.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
test/Garnet.test.cluster/VectorSets/ClusterVectorSetTests.cs Forces threadpool mins in test setup; makes cluster setup helper accept useTLS.
libs/host/GarnetServer.cs Reorders shutdown phases so server handlers are drained before provider disposal.
libs/cluster/Server/Migration/MigrateSessionSlots.cs Makes scan tasks return bool and aborts migration when any scan fails; checks TransmitSlots() result.
libs/cluster/Server/Migration/MigrateOperation.cs Checks TransmitSlots() result during namespace key migration and aborts on failure.

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

Comment thread libs/cluster/Server/Migration/MigrateSessionSlots.cs
Comment thread test/Garnet.test.cluster/VectorSets/ClusterVectorSetTests.cs Outdated
@kevin-montrose kevin-montrose requested a review from vazois April 15, 2026 22:15
@kevin-montrose kevin-montrose merged commit bd974b5 into dev Apr 16, 2026
41 of 45 checks passed
@kevin-montrose kevin-montrose deleted the users/kmontrose/vectorSetMigrationReliabilityClean-dev branch April 16, 2026 16:46
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.

4 participants