-
Notifications
You must be signed in to change notification settings - Fork 595
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
chore(storage): adjust compaction task priority and fix memory estimation #13914
Conversation
…nto li0k/storage_fix
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #13914 +/- ##
==========================================
- Coverage 68.06% 67.98% -0.08%
==========================================
Files 1542 1542
Lines 266890 266905 +15
==========================================
- Hits 181646 181454 -192
- Misses 85244 85451 +207
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -78,18 +96,22 @@ pub fn append_sstable_info_to_string(s: &mut String, sstable_info: &SstableInfo) | |||
hex::encode(key_range.right.as_slice()) | |||
}; | |||
|
|||
let ratio = sstable_info.stale_key_count * 100 / sstable_info.total_key_count; | |||
let stale_ratio = sstable_info.stale_key_count * 100 / sstable_info.total_key_count; |
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.
total_key_count be 0?
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.
good catch,
It is not expected that there will be an sst with total_key_count = 0, however, I can't guarantee that the arguments passed by the caller are compliant.
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
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.