Skip to content

Fixes around Vector Set migrations#1687

Merged
vazois merged 6 commits into
devfrom
users/kmontrose/vectorSetMigrationFixes
Apr 11, 2026
Merged

Fixes around Vector Set migrations#1687
vazois merged 6 commits into
devfrom
users/kmontrose/vectorSetMigrationFixes

Conversation

@kevin-montrose

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

Copy link
Copy Markdown
Contributor

Fix some logic around Vector Set migrations - old logic incorrectly attempted to transmit missing or malformed keys.

@kevin-montrose kevin-montrose marked this pull request as ready for review April 10, 2026 16:03
Copilot AI review requested due to automatic review settings April 10, 2026 16:03

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

This PR tightens migration handling for Vector Set element reads by correctly interpreting Tsavorite read status and avoiding serialization/sending when the element read did not actually succeed.

Changes:

  • Use Status.Found (instead of IsCompletedSuccessfully) to detect whether a Vector Set element read found a key.
  • Only rewrite namespaces and write/send Vector Set element records when the read result is OK.
  • Simplify unified-store migration skip logic by early-returning on non-OK read status.

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

Comment thread libs/cluster/Server/Migration/MigrateSessionCommonUtils.cs Outdated
Comment thread libs/cluster/Server/Migration/MigrateSessionCommonUtils.cs
@vazois vazois merged commit 41fc07c into dev Apr 11, 2026
21 of 23 checks passed
@vazois vazois deleted the users/kmontrose/vectorSetMigrationFixes branch April 11, 2026 00:03
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants