-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[enhance](mtmv)Optimize MTMV lock logic #44967
Conversation
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
run buildall |
TPC-H: Total hot run time: 40394 ms
|
TPC-DS: Total hot run time: 196973 ms
|
ClickBench: Total hot run time: 33.05 s
|
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
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.
env files LGTM
- `org.apache.doris.mtmv.MTMVPartitionUtil#getPartitionsIdsByNames ` If the lock is no longer obtained and the partition does not exist, just throw an exception - `show create materialized view` Narrowing down the scope of the lock - `OlapTable `adds a method called `getAndCopyPartitionItemWithoutLock` that does not require obtaining a lock, for use in external scenarios where it already exists
- `org.apache.doris.mtmv.MTMVPartitionUtil#getPartitionsIdsByNames ` If the lock is no longer obtained and the partition does not exist, just throw an exception - `show create materialized view` Narrowing down the scope of the lock - `OlapTable `adds a method called `getAndCopyPartitionItemWithoutLock` that does not require obtaining a lock, for use in external scenarios where it already exists
- `org.apache.doris.mtmv.MTMVPartitionUtil#getPartitionsIdsByNames ` If the lock is no longer obtained and the partition does not exist, just throw an exception - `show create materialized view` Narrowing down the scope of the lock - `OlapTable `adds a method called `getAndCopyPartitionItemWithoutLock` that does not require obtaining a lock, for use in external scenarios where it already exists
Cherry-picked from #44967 Co-authored-by: zhangdong <[email protected]>
What problem does this PR solve?
org.apache.doris.mtmv.MTMVPartitionUtil#getPartitionsIdsByNames
If the lock is no longer obtained and the partition does not exist, just throw an exceptionshow create materialized view
Narrowing down the scope of the lockOlapTable
adds a method calledgetAndCopyPartitionItemWithoutLock
that does not require obtaining a lock, for use in external scenarios where it already existsIssue Number: close #xxx
Related PR: #xxx
Problem Summary:
Optimize MTMV lock logic
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)