Skip to content
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

Support SELECT inside multi-exec #1095

Merged
merged 2 commits into from
Mar 14, 2025
Merged

Support SELECT inside multi-exec #1095

merged 2 commits into from
Mar 14, 2025

Conversation

badrishc
Copy link
Collaborator

Support SELECT inside multi-exec

Fixes #715

@Copilot Copilot bot review requested due to automatic review settings March 13, 2025 01:28
Copy link
Contributor

@Copilot 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

This PR adds support for the SELECT command within multi-exec transactions and fixes issue #715. It includes a new test case for transaction execution and updates the transaction key manager to recognize the SELECT command.

  • Adds a new test method TxnExecuteTest in TransactionTests.cs to verify multi-exec behavior.
  • Updates TxnKeyManager.cs to map the SELECT command correctly.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/Garnet.test/TransactionTests.cs Adds new test TxnExecuteTest for multi-exec transactions
libs/server/Transaction/TxnKeyManager.cs Extends command mapping to support SELECT
Comments suppressed due to low confidence (1)

test/Garnet.test/TransactionTests.cs:62

  • While the PR title focuses on SELECT support inside multi-exec, there is no test case that exercises the SELECT command. Consider adding a dedicated test that verifies the behavior of SELECT in a multi-exec transaction.
[Test]

@TalZaccai TalZaccai self-requested a review March 13, 2025 18:34
@badrishc badrishc merged commit 4585ab0 into main Mar 14, 2025
26 checks passed
@badrishc badrishc deleted the badrishc/select-inside-txn branch March 14, 2025 01:30
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.

Bug: Incompatibility with StackExchange Client's txn call for ExecuteAsync command
3 participants