Repository navigation
[Fix] : replace point locks with table lock in some cases - #15578
Conversation
|
本地ci已经过了
目前还有一个场景会遇到这个pr所希望fix的bug 当这个 |
理论上,最后一次要超过配置锁的数量的那个insert,如果统计信息是准确的,应该也是会转成表锁的。所以感觉当前逻辑应该已经覆盖了。 |
调试了一下, 发现目前这种情况下, insert values xxx走到 |
提个issue给倪涛帮忙看看吧 |
…in#15578) sql like `insert into A select * from B`, will try to lock the value in `B`. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock Approved by: @ouyuanning, @daviszhen, @zhangxu19830126
…in#15578) sql like `insert into A select * from B`, will try to lock the value in `B`. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock Approved by: @ouyuanning, @daviszhen, @zhangxu19830126
replace point locks with table lock in some cases Approved by: @nnsgmsone, @ouyuanning, @zhangxu19830126, @reusee, @daviszhen, @sukki37
…atrixorigin#15611) replace point locks with table lock in some cases Approved by: @nnsgmsone, @ouyuanning, @zhangxu19830126, @reusee, @daviszhen, @sukki37
…trixorigin#15578)" This reverts commit 57def8e.
…in#15578) sql like `insert into A select * from B`, will try to lock the value in `B`. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock Previous pr's used the wrong stats, now it's standardized to do the judgement in the last step of building the logic plan.
…in#15578) sql like `insert into A select * from B`, will try to lock the value in `B`. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock Previous pr's used the wrong stats, now it's standardized to do the judgement in the last step of building the logic plan.
…in#15578) sql like `insert into A select * from B`, will try to lock the value in `B`. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock Previous pr's used the wrong stats, now it's standardized to do the judgement in the last step of building the logic plan.
…in#15578) sql like `insert into A select * from B`, will try to lock the value in `B`. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock Previous pr's used the wrong stats, now it's standardized to do the judgement in the last step of building the logic plan.
…in#15578) sql like `insert into A select * from B`, will try to lock the value in `B`. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock Previous pr's used the wrong stats, now it's standardized to do the judgement in the last step of building the logic plan.
…in#15578) sql like `insert into A select * from B`, will try to lock the value in `B`. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock Previous pr's used the wrong stats, now it's standardized to do the judgement in the last step of building the logic plan.
…in#15578) sql like `insert into A select * from B`, will try to lock the value in `B`. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock Previous pr's used the wrong stats, now it's standardized to do the judgement in the last step of building the logic plan.
…in#15578) sql like `insert into A select * from B`, will try to lock the value in `B`. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock Previous pr's used the wrong stats, now it's standardized to do the judgement in the last step of building the logic plan.
…15763) sql like `insert into A select * from B`, will try to lock the value in `B`. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock Approved by: @zhangxu19830126, @reusee, @ouyuanning, @daviszhen
…in#15578) sql like `insert into A select * from B`, will try to lock the value in `B`. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock Approved by: @ouyuanning, @daviszhen, @zhangxu19830126
…in#15578) (matrixorigin#15763) sql like `insert into A select * from B`, will try to lock the value in `B`. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock Approved by: @zhangxu19830126, @reusee, @ouyuanning, @daviszhen
What type of PR is this?
Which issue(s) this PR fixes:
issue #https://github.com/matrixorigin/MO-Cloud/issues/3039 https://github.com/matrixorigin/MO-Cloud/issues/3006
What this PR does / why we need it:
sql like
insert into A select * from B, will try to lock the value inB. When the number of these locks is too much, it will lead to bugs reflected in the issue. In the context of range locks being temporarily unavailable, use table lock to replace point lock