Skip to content

[DEV] Verbatim String Fixes#1777

Merged
badrishc merged 9 commits intodevfrom
users/kmontrose/verbatimStringFix-dev
May 9, 2026
Merged

[DEV] Verbatim String Fixes#1777
badrishc merged 9 commits intodevfrom
users/kmontrose/verbatimStringFix-dev

Conversation

@kevin-montrose
Copy link
Copy Markdown
Contributor

dev version of #1776

… more general fix is needed throughout, but this should fix INFO with large numbers of clients or nodes
@kevin-montrose kevin-montrose changed the base branch from main to dev May 6, 2026 22:01
@kevin-montrose kevin-montrose mentioned this pull request May 6, 2026
1 task
@kevin-montrose kevin-montrose marked this pull request as ready for review May 6, 2026 22:01
Copilot AI review requested due to automatic review settings May 6, 2026 22:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates RESP command output to use a new “large” verbatim string writer (for RESP3) and expands existing INFO-related tests to run under both RESP2 and RESP3.

Changes:

  • Parameterize INFO/RESETSTATS tests to run for RESP2 and RESP3 configurations.
  • Replace verbatim-string output calls in INFO and CLIENT commands to use WriteLargeVerbatimString.
  • Implement a new verbatim-string writer that flushes appropriately for larger payloads and uses bulk strings for RESP2.

Reviewed changes

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

File Description
test/Garnet.test/RespInfoTests.cs Expands test coverage to run INFO/RESETSTATS cases under both RESP2 and RESP3.
libs/server/Resp/RespServerSessionOutput.cs Adds a new verbatim-string writer that handles larger payloads and explicit RESP2/RESP3 behavior.
libs/server/Resp/ClientCommands.cs Switches CLIENTLIST/CLIENTINFO output to the new large verbatim-string writer.
libs/server/Metrics/Info/InfoCommand.cs Switches INFO output to the new large verbatim-string writer and simplifies empty response writing.

Comment thread test/Garnet.test/RespInfoTests.cs Outdated
Comment thread test/Garnet.test/RespInfoTests.cs
Comment thread test/Garnet.test/RespInfoTests.cs Outdated
Comment thread libs/server/Resp/RespServerSessionOutput.cs
Comment thread libs/server/Resp/RespServerSessionOutput.cs Outdated
Comment thread libs/server/Resp/RespServerSessionOutput.cs Outdated
@badrishc badrishc merged commit 2bf194e into dev May 9, 2026
21 of 23 checks passed
@badrishc badrishc deleted the users/kmontrose/verbatimStringFix-dev branch May 9, 2026 05:34
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