-
Notifications
You must be signed in to change notification settings - Fork 677
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
Allow MEMORY MALLOC-STATS
and MEMORY PURGE
during loading phase
#1317
base: unstable
Are you sure you want to change the base?
Conversation
Signed-off-by: Guillaume Koenig <[email protected]>
6b826d4
to
09d475d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #1317 +/- ##
============================================
+ Coverage 70.73% 70.76% +0.02%
============================================
Files 115 117 +2
Lines 63158 63315 +157
============================================
+ Hits 44674 44802 +128
- Misses 18484 18513 +29
|
I would like to suggest only 3 commands except "memory stats" to be allowed during loading process because it costs a lot of resources and involves key issues. (key count, key used memory) |
Signed-off-by: Guillaume Koenig <[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.
LGTM, somehow i think we can put the test in introspection.tcl
please also update the top comment, we can copy the issue content instead of just linking it. |
Signed-off-by: Binbin <[email protected]>
memory malloc-stats
and memory purge
during loading phase
I updated the title and top comment. |
Signed-off-by: Guillaume Koenig <[email protected]>
Moved the test into introspection.tcl. Let's see if it passes on the CI. |
#1368 The expire test is fixed |
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.
Everything looks good, @enjoy-binbin If you agree, pls merge it.
I merged unstable, and the tests now pass. Thank you! |
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.
LGTM. @valkey-io/core-team please approval
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.
Change seems good. Didn't review the diff. Is it a major decision?
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.
@zuiderkwast I think its technically a major decision based on past decisions, since it's altering command behavior. Moving forward maybe it shouldn't be though.
memory malloc-stats
and memory purge
during loading phaseMEMORY MALLOC-STATS
and MEMORY PURGE
during loading phase
MEMORY MALLOC-STATS
andMEMORTY PURGE
are now allowed as they don't depend on the datasetMEMORY STATS
andMEMORY USAGE KEY
remain disallowedFixes #1299