-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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](mtmv) Fix written by mv successfully but not get mv lock. If use mv, data maybe wrong #40173
[fix](mtmv) Fix written by mv successfully but not get mv lock. If use mv, data maybe wrong #40173
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
TPC-H: Total hot run time: 39919 ms
|
TPC-DS: Total hot run time: 194401 ms
|
ClickBench: Total hot run time: 31.89 s
|
8bf2b60
to
ec8ff95
Compare
run buildall |
TPC-H: Total hot run time: 38140 ms
|
TPC-DS: Total hot run time: 192508 ms
|
ClickBench: Total hot run time: 32.1 s
|
if (materializationContext instanceof AsyncMaterializationContext && !materializationContext.isSuccess()) { | ||
// Need get mtmv read lock, to avoid the data of plan which use mv is wrong | ||
cascadesContext.getStatementContext() | ||
.addTableReadLock(((AsyncMaterializationContext) materializationContext).getMtmv()); |
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.
should lock table before rewrite
run buildall |
TPC-H: Total hot run time: 38686 ms
|
TPC-DS: Total hot run time: 187502 ms
|
ClickBench: Total hot run time: 32.12 s
|
fa6df86
to
b204a0c
Compare
run buildall |
TPC-H: Total hot run time: 37963 ms
|
TPC-DS: Total hot run time: 192843 ms
|
ClickBench: Total hot run time: 31.11 s
|
3a8ee8c
to
2fb14d9
Compare
run buildall |
PR approved by at least one committer and no changes requested. |
c2ecf20
to
04c25e5
Compare
run buildall |
TPC-H: Total hot run time: 41277 ms
|
TPC-DS: Total hot run time: 191592 ms
|
PR approved by at least one committer and no changes requested. |
ClickBench: Total hot run time: 32.79 s
|
run p0 |
…e mv, data maybe wrong (apache#40173) When refresh partition mv, meanwhile, the query that can be written successfully by the same mv, if we run the query, the result maybe wrong. this pr fix this.
…e mv, data maybe wrong (apache#40173) When refresh partition mv, meanwhile, the query that can be written successfully by the same mv, if we run the query, the result maybe wrong. this pr fix this.
…e mv, data maybe wrong (apache#40173) When refresh partition mv, meanwhile, the query that can be written successfully by the same mv, if we run the query, the result maybe wrong. this pr fix this.
Proposed changes
When refresh partition mv, meanwhile, the query that can be written successfully by the same mv, if we run the query, the result maybe wrong.
this pr fix this.