-
Notifications
You must be signed in to change notification settings - Fork 314
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: prune memtable/files range independently in each partition #4998
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe pull request introduces several modifications across multiple files in the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
05b26ca
to
e86196d
Compare
@coderabbitai summary |
✅ Actions performedSummary regeneration triggered. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4998 +/- ##
==========================================
- Coverage 84.03% 83.79% -0.24%
==========================================
Files 1146 1146
Lines 213828 213873 +45
==========================================
- Hits 179690 179221 -469
- Misses 34138 34652 +514 |
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
#4828
What's changed and what's your intention?
This PR removes the scanner level global lock for range builders. Each partition will create a range builder for a file to prune.
In UnorderedScan, each partition may prune the same file multiple times. But this usually doesn't increase the total query time.
The global lock may have potential issues while the query engine is doing something like streaming merge. Since partitions may wait for each other. If the top partition currently polling is waiting for a lock owned by another partition in the merge heap, then the top partition may never have a chance to get the lock.
Checklist
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Refactor
Chores