Uh oh!
There was an error while loading. Please reload this page.
(cloud-merge) Support to abort txn when coordinate be restart and do schema change - #37669
Conversation
doris-robot
commented
Jul 11, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Lchangliang
commented
Jul 11, 2024
run buildall |
Lchangliang
commented
Jul 15, 2024
run buildall |
| // specific language governing permissions and limitations | ||
| // under the License. | ||
| #include <gen_cpp/cloud.pb.h> |
There was a problem hiding this comment.
warning: 'gen_cpp/cloud.pb.h' file not found [clang-diagnostic-error]
#include<gen_cpp/cloud.pb.h>
^Lchangliang
commented
Jul 15, 2024
run buildall |
1 similar comment
Lchangliang
commented
Jul 15, 2024
run buildall |
doris-robot
commented
Jul 15, 2024
TPC-H: Total hot run time: 39787 ms |
doris-robot
commented
Jul 15, 2024
TPC-DS: Total hot run time: 173334 ms |
doris-robot
commented
Jul 15, 2024
ClickBench: Total hot run time: 30.29 s |
Lchangliang
commented
Jul 16, 2024
run buildall |
doris-robot
commented
Jul 16, 2024
TPC-H: Total hot run time: 39994 ms |
doris-robot
commented
Jul 16, 2024
TPC-DS: Total hot run time: 172919 ms |
doris-robot
commented
Jul 16, 2024
ClickBench: Total hot run time: 30.32 s |
Lchangliang
commented
Jul 17, 2024
run cloud_p0 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Lchangliang
commented
Jul 22, 2024
run buildall |
2 similar comments
Lchangliang
commented
Jul 22, 2024
run buildall |
Lchangliang
commented
Jul 22, 2024
run buildall |
doris-robot
commented
Jul 22, 2024
TPC-H: Total hot run time: 40310 ms |
doris-robot
commented
Jul 22, 2024
TPC-DS: Total hot run time: 173016 ms |
doris-robot
commented
Jul 22, 2024
ClickBench: Total hot run time: 30.66 s |
Lchangliang
commented
Jul 25, 2024
run external |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Lchangliang
commented
Jul 29, 2024
run buildall |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Lchangliang
commented
Jul 29, 2024
run buildall |
doris-robot
commented
Jul 29, 2024
TPC-H: Total hot run time: 41733 ms |
doris-robot
commented
Jul 29, 2024
TPC-DS: Total hot run time: 171104 ms |
doris-robot
commented
Jul 29, 2024
ClickBench: Total hot run time: 29.87 s |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
…schema change (#37669) When do schema change, it will check whether transactions of the given database which txnId is less than 'watershedTxnId' are finished. If is not, schema change will be waiting. When the coordinator restart (whatever fe/be), the txn belong the cooridinator will be hang until timeout. So we need to abort it in time. There are two optimizations. 1. Check BE's lastStartTime when get it heart beat. If current lastStartTime is large than lastStartTime in fe memory. Abort all the hang txns belong this BE. 2. Check conflict txns when do schema change. If txns is failed (Maybe coordinator be/fe restart), abort it directly.
…schema change (#37669) When do schema change, it will check whether transactions of the given database which txnId is less than 'watershedTxnId' are finished. If is not, schema change will be waiting. When the coordinator restart (whatever fe/be), the txn belong the cooridinator will be hang until timeout. So we need to abort it in time. There are two optimizations. 1. Check BE's lastStartTime when get it heart beat. If current lastStartTime is large than lastStartTime in fe memory. Abort all the hang txns belong this BE. 2. Check conflict txns when do schema change. If txns is failed (Maybe coordinator be/fe restart), abort it directly.
…schema change (apache#37669) When do schema change, it will check whether transactions of the given database which txnId is less than 'watershedTxnId' are finished. If is not, schema change will be waiting. When the coordinator restart (whatever fe/be), the txn belong the cooridinator will be hang until timeout. So we need to abort it in time. There are two optimizations. 1. Check BE's lastStartTime when get it heart beat. If current lastStartTime is large than lastStartTime in fe memory. Abort all the hang txns belong this BE. 2. Check conflict txns when do schema change. If txns is failed (Maybe coordinator be/fe restart), abort it directly.
…on case (apache#40765) ## Proposed changes PR apache#37669 introduced a new config `enable_abort_txn_by_checking_conflict_txn=true`. This config will abort schema while loading txn and restart coordinator, which causes regression test failed. We set it to false to fix this test. <!--Describe your changes.-->
When do schema change, it will check whether transactions of the given database which txnId is less than 'watershedTxnId' are finished. If is not, schema change will be waiting.
When the coordinator restart (whatever fe/be), the txn belong the cooridinator will be hang until timeout. So we need to abort it in time.
There are two optimizations.