Skip to content

Core/Batch: Add handling for server errors in value conversion #3942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2025

Conversation

shohamazon
Copy link
Collaborator

@shohamazon shohamazon commented May 22, 2025

Prevents commands that encountered a ServerError from being converted to their expected types (e.g., HGETALL to Map). This ensures that batch responses with errors are handled safely and do not cause type conversion issues.

Issue link

This Pull Request is linked to issue (URL): #3937

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one issue.
  • Commit message has a detailed description of what changed and why.
  • Tests are added or updated.
  • CHANGELOG.md and documentation files are updated.
  • Destination branch is correct - main or release
  • Create merge commit if merging release branch into main, squash otherwise.

@shohamazon shohamazon requested a review from a team as a code owner May 22, 2025 08:11
@barshaul
Copy link
Collaborator

Please add short description to the PR and add the bug fix to the CHANGELOG

@shohamazon shohamazon self-assigned this May 26, 2025
@shohamazon shohamazon linked an issue May 26, 2025 that may be closed by this pull request
@shohamazon shohamazon merged commit 81bcc01 into valkey-io:main May 26, 2025
61 checks passed
@shohamazon shohamazon deleted the batch-fix branch May 26, 2025 11:06
smas-provenir pushed a commit to mthemis-provenir/valkey-glide that referenced this pull request May 26, 2025
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.

Batch: raise_on_error = false conflicts with response conversion
3 participants