-
Notifications
You must be signed in to change notification settings - Fork 703
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
Make a light weight version of DEBUG OBJECT, add FAST option #881
Make a light weight version of DEBUG OBJECT, add FAST option #881
Conversation
The light version only shows the light weight infomation, which mostly O(1). The pre-existing version that show more stats such as serializedlength is reachable with the `full` argument. This should allow looking into debug stats (the key expired but not deleted), even on huge object, on which we're afraid to run the command for fear of causing a server freeze. Like 3ca451c. Signed-off-by: Binbin <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #881 +/- ##
============================================
- Coverage 70.39% 70.17% -0.23%
============================================
Files 112 112
Lines 61465 61496 +31
============================================
- Hits 43271 43156 -115
- Misses 18194 18340 +146
|
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.
This is not backward compatible, but we don't need backward compatibility for DEBUG?
yes, it is for debug, i don't think we need backward compatibility for it. |
Why not make it backward compatible though? I found a few examples of AWS using it internally for testing that would fail on rdbSavedObjectLen(). Those are easy to fix, but maybe someone else is using that as well. We could easily make it backwards compatible and do |
the default behavior is a bit dangerous, like act on a large lists, but i guess the |
Signed-off-by: Binbin <[email protected]>
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.
Yeah, this seems great to me.
…io#881) Adding FAST option to DEBUG OBJECT command. The light version only shows the light weight infomation, which mostly O(1). The pre-existing version that show more stats such as serializedlength sometimes is time consuming. This should allow looking into debug stats (the key expired but not deleted), even on huge object, on which we're afraid to run the command for fear of causing a server freeze. Somehow like 3ca451c. Signed-off-by: Binbin <[email protected]> Signed-off-by: mwish <[email protected]>
…io#881) Adding FAST option to DEBUG OBJECT command. The light version only shows the light weight infomation, which mostly O(1). The pre-existing version that show more stats such as serializedlength sometimes is time consuming. This should allow looking into debug stats (the key expired but not deleted), even on huge object, on which we're afraid to run the command for fear of causing a server freeze. Somehow like 3ca451c. Signed-off-by: Binbin <[email protected]> Signed-off-by: mwish <[email protected]>
Adding FAST option to DEBUG OBJECT command. The light version only shows the light weight infomation, which mostly O(1). The pre-existing version that show more stats such as serializedlength sometimes is time consuming. This should allow looking into debug stats (the key expired but not deleted), even on huge object, on which we're afraid to run the command for fear of causing a server freeze. Somehow like 3ca451c. Signed-off-by: Binbin <[email protected]>
Adding FAST option to DEBUG OBJECT command. The light version only shows the light weight infomation, which mostly O(1). The pre-existing version that show more stats such as serializedlength sometimes is time consuming. This should allow looking into debug stats (the key expired but not deleted), even on huge object, on which we're afraid to run the command for fear of causing a server freeze. Somehow like 3ca451c. Signed-off-by: Binbin <[email protected]>
…io#881) Adding FAST option to DEBUG OBJECT command. The light version only shows the light weight infomation, which mostly O(1). The pre-existing version that show more stats such as serializedlength sometimes is time consuming. This should allow looking into debug stats (the key expired but not deleted), even on huge object, on which we're afraid to run the command for fear of causing a server freeze. Somehow like 3ca451c. Signed-off-by: Binbin <[email protected]> Signed-off-by: Ping Xie <[email protected]>
…io#881) Adding FAST option to DEBUG OBJECT command. The light version only shows the light weight infomation, which mostly O(1). The pre-existing version that show more stats such as serializedlength sometimes is time consuming. This should allow looking into debug stats (the key expired but not deleted), even on huge object, on which we're afraid to run the command for fear of causing a server freeze. Somehow like 3ca451c. Signed-off-by: Binbin <[email protected]> Signed-off-by: Ping Xie <[email protected]>
…io#881) Adding FAST option to DEBUG OBJECT command. The light version only shows the light weight infomation, which mostly O(1). The pre-existing version that show more stats such as serializedlength sometimes is time consuming. This should allow looking into debug stats (the key expired but not deleted), even on huge object, on which we're afraid to run the command for fear of causing a server freeze. Somehow like 3ca451c. Signed-off-by: Binbin <[email protected]> Signed-off-by: Ping Xie <[email protected]>
Adding FAST option to DEBUG OBJECT command.
The light version only shows the light weight infomation,
which mostly O(1). The pre-existing version that show more
stats such as serializedlength sometimes is time consuming.
This should allow looking into debug stats (the key expired
but not deleted), even on huge object, on which we're afraid
to run the command for fear of causing a server freeze.
Like 3ca451c.