Skip to content

redis_proxy: Add full implementation of select - #39829

Merged
mattklein123 merged 1 commit into
envoyproxy:mainfrom
qerogram:main
Jun 17, 2025
Merged

mattklein123 merged 1 commit into
envoyproxy:mainfrom
qerogram:main

Conversation

@qerogram

Copy link
Copy Markdown
Contributor

Commit Message: redis_proxy: Add full implementation of select

Additional Description: The implementation of the SELECT command in the existing PR #37706 was incorrect. It only modified the client’s visible state without actually changing the selected database. This PR provides a proper implementation of the SELECT command.

Risk Level: Low

Testing:unit test

Docs Changes: no

Release Notes:
Platform Specific Features:

@qerogram
qerogram requested a review from mattklein123 as a code owner June 10, 2025 23:50
@agrawroh

Copy link
Copy Markdown
Member

@qerogram Could you please sign your commits and re-push?

@qerogram
qerogram force-pushed the main branch 3 times, most recently from bb86dbb to 3b3990a Compare June 11, 2025 01:25
@qerogram

Copy link
Copy Markdown
Contributor Author

@mattklein123 Hello!

I noticed that the Envoy/Scan - Coverage job failed.
The changes I made in the redis-proxy module have a test coverage of 96.7%, which meets the required threshold.
However, the job seems to have failed due to the source/common/network module, which I did not modify, reporting a coverage of 94.3%.

I’d appreciate it if this could be taken into consideration.

Thank you.

@agrawroh

Copy link
Copy Markdown
Member

@mattklein123 Hello!

I noticed that the Envoy/Scan - Coverage job failed.

The changes I made in the redis-proxy module have a test coverage of 96.7%, which meets the required threshold.

However, the job seems to have failed due to the source/common/network module, which I did not modify, reporting a coverage of 94.3%.

I’d appreciate it if this could be taken into consideration.

Thank you.

Yeah, I am trying to figure out why that happened. Will try to fix it.

@qerogram

Copy link
Copy Markdown
Contributor Author

@agrawroh Thanks you 👍🏻

phlax pushed a commit that referenced this pull request Jun 11, 2025
## Description

Adjust the coverage numbers for `source/common/network` as it seems to
be flaky and failing a few triggers. [See
This](#39829)

Signed-off-by: Rohit Agrawal <[email protected]>
@qerogram

Copy link
Copy Markdown
Contributor Author

/retest

@phlax

phlax commented Jun 11, 2025

Copy link
Copy Markdown
Member

@qerogram i think you will need to merge main to resolve coverage

@qerogram

Copy link
Copy Markdown
Contributor Author

@phlax @agrawroh Thank you! Coverage passed on GitHub Actions!

@KBaichoo

Copy link
Copy Markdown
Contributor

/assign @mattklein123

@mattklein123
mattklein123 merged commit e9864c7 into envoyproxy:main Jun 17, 2025
@dinesh-murugiah

dinesh-murugiah commented Nov 25, 2025 •

Copy link
Copy Markdown
Contributor

@qerogram The error response has to be sent as redis cluster does as it does not support select command

When using Redis Cluster, the SELECT command cannot be used, since Redis Cluster only supports database zero. In the case of a Redis Cluster, having multiple databases would be useless and an unnecessary source of complexity. Commands operating atomically on a single database would not be possible with the Redis Cluster design and goals.

https://redis.io/docs/latest/commands/select/

i am planning to send the error response as reported by redis

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.

6 participants