Skip to content

SLOWLOG GET Complexity Analysis #622

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

Closed
wants to merge 4 commits into from
Closed

SLOWLOG GET Complexity Analysis #622

wants to merge 4 commits into from

Conversation

loisaidasam
Copy link

The Garantia Data custom Redis version (Redis Labs' flavor) returns Complexity info as part of the SLOWLOG GET result (see here).

This pull request parses that data out and handles those responses properly.

Test included.

@yoav-steinberg
Copy link

+1 for this. We use the complexity info a lot and had to customize our python parsing for this.

@s200999900
Copy link

+1 for this.

@loisaidasam
Copy link
Author

Any updates here? @andymccurdy

The [Garantia Data custom Redis version (Redis Labs' flavor)](https://github.com/RedisLabs/redis) returns `Complexity Info` as part of the `SLOWLOG GET` result. This commit helps handle those responses properly.
Testing the Garantia Data custom Redis result that includes complexity analysis
Specifically, if the user's Redis instance isn't Garantia Data flavored, this test monkey patches `parse_response()` to include the complexity analysis part of the response the same way they do, and then tests for the expected response
@ofek
Copy link
Contributor

ofek commented Jan 21, 2019

@andymccurdy Any progress on this?

@github-actions
Copy link
Contributor

This pull request is marked stale. It will be closed in 30 days if it is not updated.

@github-actions github-actions bot added the Stale label Jul 31, 2020
@RoeyPrat RoeyPrat linked an issue Aug 2, 2020 that may be closed by this pull request
@RoeyPrat
Copy link

RoeyPrat commented Aug 2, 2020

This fix won't work on open-source Redis version 4+, since 2 new fields were added.
https://redis.io/commands/slowlog

@RoeyPrat RoeyPrat removed the Stale label Aug 2, 2020
ian28223 added a commit to ian28223/redis-py that referenced this pull request Jun 2, 2021
ian28223 added a commit to ian28223/redis-py that referenced this pull request Jun 2, 2021
Copied from redis#622
@github-actions
Copy link
Contributor

github-actions bot commented Aug 3, 2021

This pull request is marked stale. It will be closed in 30 days if it is not updated.

@github-actions github-actions bot added the Stale label Aug 3, 2021
chayim pushed a commit that referenced this pull request Aug 29, 2021
* Return slowlog complexity info if available

based on #622

* Add tests
Copied from #622

* address flake E306

* Trigger Build
@github-actions github-actions bot closed this Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

slowlog get - does not include fields added in Redis version 4
5 participants