-
Notifications
You must be signed in to change notification settings - Fork 520
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
"databases" misreported #775
Comments
Looks like if the cluster mode is enabled garnet/libs/server/ServerConfig.cs Line 83 in 9230a44
Edit: Looks like if the cluster mode is enabled then we should get an error even in garnet/libs/server/Resp/ArrayCommands.cs Lines 240 to 245 in 9230a44
|
For cluster mode, I think right now we are on par with Redis. We are basically returning the following. I guess the only difference is that Redis executes successfully for SELECT 0, so that might need to be fixed. For the standalone, I guess it makes sense to advertise databases = 1. I am not sure though if there is any expectation from the clients to observe a value of 16. @mgravell, is there such thing? If not, then should be fine to return databases = 1. |
@vazois Also redis support not only 16 databases, this parameter can be configured https://github.com/valkey-io/valkey/blob/45d596e1216472e49b9f950a4b9a040b6e87add6/valkey.conf#L396C1-L396C13 |
Describe the bug
The following is unexpected:
If
select
isn't fully implemented,databases
should probably report1
. Reporting 16 but erroring if trying to change the database is... weird.Steps to reproduce the bug
select 1
(or anything else greater than zero and less than the reporteddatabases
)note that
select 0
works fine and as expectedI suspect the real "bug" here is in
config get
, in particulardatabases
Expected behavior
No response
Screenshots
No response
Release version
No response
IDE
No response
OS version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: