-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix keyspace configuration in redis key metricset #12913
Conversation
Fix incoherent behaviour when keyspace is specified in the redis host URL and not in some of the key patterns. If it was not specified it used the default 0 instead of using the one in the redis host.
One test is flaky |
Fixed, the method I was using to get current keyspace was not reliable, according to documentation client should keep track of the keyspace selected, so changed to this method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just need to rebase 😬
jenkins, test this again please |
1 similar comment
jenkins, test this again please |
Fix incoherent behaviour when keyspace is specified in the redis host URL and not in some of the key patterns. If it was not specified it used the default 0 instead of using the one configured in the redis host. (cherry picked from commit 03d7870)
… key metricset (elastic#12999) Fix incoherent behaviour when keyspace is specified in the redis host URL and not in some of the key patterns. If it was not specified it used the default 0 instead of using the one configured in the redis host. (cherry picked from commit 7bad0a6)
Fix incoherent behaviour when keyspace is specified in the redis host
URL and not in some of the key patterns. If it was not specified it used
the default 0 instead of using the one in the redis host.
Redis doesn't have a direct way to request the keyspace being currently
used by a client, documentation mentions that is responsibility of the
client to keep track of the keyspace used if it changes it using
Select
.This solution stores the db number originally configured and uses it
in the
key
metricset if no other keyspace is configured.Fixes #12874