Skip to content

Fix Vector Set RESP2 and RESP3 reply contracts - #2184

Merged
Tiago Nápoli (tiagonapoli) merged 8 commits into
microsoft:mainfrom
tiagonapoli:tiagonapoli/vector-resp-protocol-tests-upstream
Sep 30, 2026
Merged

Tiago Nápoli (tiagonapoli) merged 8 commits into
microsoft:mainfrom
tiagonapoli:tiagonapoli/vector-resp-protocol-tests-upstream

Conversation

@tiagonapoli

@tiagonapoli Tiago Nápoli (tiagonapoli) commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Exercise the 12 implemented Vector Set commands under RESP2 and RESP3 with 32 protocol cases.
  • Correct VREM's RESP3 boolean reply while retaining RESP2 integer replies.
  • Return a null VSIM WITHATTRIBS attribute when absent.
  • Return VINFO as a RESP2 array or RESP3 map with integer metadata.

Cover all twelve Vector Set commands under both protocols and correct VREM boolean, VSIM missing-attribute, and VINFO metadata replies. Test and document the existing VLINKS protocol types without changing its native neighbor grouping.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 8f3348cd-0095-4ac5-ad48-7ee7f210131b
Copilot AI balanced review requested due to automatic review settings September 29, 2026 17:20

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.

Copilot review overview

🟡 Changes recommended

VINFO tests verify only one of the five numeric fields whose wire types changed.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Corrects Vector Set RESP2/RESP3 reply contracts and adds protocol coverage.

Changes:

  • Fixes VREM, VINFO, and missing VSIM attribute replies.
  • Adds 32 RESP protocol test cases.
  • Updates VREM and VINFO documentation.
File Description
libs/​server/​Resp/​RespServerSessionOutput.cs Adds protocol-aware boolean output.
libs/​server/​Resp/​Vector/​RespServerSessionVectors.cs Corrects Vector Set reply encoding.
test/​standalone/​Garnet.test.vectorset/​VectorSetProtocolTests.cs Adds RESP2/RESP3 contract tests.
website/​docs/​commands/​vector-sets.md Documents corrected replies.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread test/standalone/Garnet.test.vectorset/VectorSetProtocolTests.cs Outdated
Co-authored-by: Copilot <[email protected]>

Copilot-Session: 8f3348cd-0095-4ac5-ad48-7ee7f210131b

@kevin-montrose kevin-montrose 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.

Looks like some of the existing VSIM tests need to be updated?

Tiago Martins Napoli added 2 commits September 29, 2026 14:14
Co-authored-by: Copilot <[email protected]>

Copilot-Session: 8f3348cd-0095-4ac5-ad48-7ee7f210131b
Co-authored-by: Copilot <[email protected]>

Copilot-Session: 8f3348cd-0095-4ac5-ad48-7ee7f210131b
@tiagonapoli
Tiago Nápoli (tiagonapoli) merged commit 7398c06 into microsoft:main Sep 30, 2026
169 checks passed
x@01 (x-at-01) added a commit to webc-fork/garnet that referenced this pull request Oct 4, 2026
…2187,microsoft#2188,microsoft#2189), Vector Sets expiration after migration (microsoft#2179), Vector Set RESP2/RESP3 contracts (microsoft#2184), AOF recovery hang + ScanCursor read-ahead + size-tracker fixes (microsoft#2181)
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