Uh oh!
There was an error while loading. Please reload this page.
[fix](dynamic partition) drop partition exclude history_partition_num - #37539
Conversation
doris-robot
commented
Jul 9, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
yujun777
commented
Jul 9, 2024
run buildall |
zclllyybb
commented
Jul 9, 2024
need re-format FE |
yujun777
commented
Jul 9, 2024
run buildall |
doris-robot
commented
Jul 9, 2024
TPC-H: Total hot run time: 39675 ms |
doris-robot
commented
Jul 9, 2024
TPC-DS: Total hot run time: 174239 ms |
doris-robot
commented
Jul 9, 2024
ClickBench: Total hot run time: 30.34 s |
yujun777
commented
Jul 9, 2024
run external |
yujun777
commented
Jul 9, 2024
run p1 |
yujun777
commented
Jul 9, 2024
run cloud_p1 |
yujun777
commented
Jul 9, 2024
run p0 |
1 similar comment
yujun777
commented
Jul 9, 2024
run p0 |
PR approved by anyone and no changes requested. |
yujun777
commented
Jul 9, 2024
run p1 |
yujun777
commented
Jul 9, 2024
run cloud_p1 |
yujun777
commented
Jul 9, 2024
run external |
PR approved by at least one committer and no changes requested. |
dataroaring
commented
Jul 9, 2024
run buildall |
862d9c7 to
86af736Comparedataroaring
commented
Jul 9, 2024
run buildall |
doris-robot
commented
Jul 9, 2024
TPC-H: Total hot run time: 39415 ms |
doris-robot
commented
Jul 9, 2024
TPC-DS: Total hot run time: 173448 ms |
PR approved by at least one committer and no changes requested. |
doris-robot
commented
Jul 9, 2024
ClickBench: Total hot run time: 30.38 s |
…#37539) FIX: When dropping dynamic partition, PR #35778 will use math.max(start, -history_partition_num) as the first partition, but it may delete users' partitions if they specify both start and history_partition_num inappropriately. For safety reason, revert this behavious changed, only use start as the first partition when dropping partitions. For those who had specified a very small start value, drop partitions will catch an exception , and stop dropping this table's partition and then record this error in dynamic info. Users can use command `SHOW DYNAMIC PARTITION TABLES FROM DBXXX` to know this error. From this error, it will give user hint to modify start if they really specify a error start. --------- Co-authored-by: Yongqiang YANG <98214048+dataroaring@users.noreply.github.com>
…apache#37539) FIX: When dropping dynamic partition, PR apache#35778 will use math.max(start, -history_partition_num) as the first partition, but it may delete users' partitions if they specify both start and history_partition_num inappropriately. For safety reason, revert this behavious changed, only use start as the first partition when dropping partitions. For those who had specified a very small start value, drop partitions will catch an exception , and stop dropping this table's partition and then record this error in dynamic info. Users can use command `SHOW DYNAMIC PARTITION TABLES FROM DBXXX` to know this error. From this error, it will give user hint to modify start if they really specify a error start. --------- Co-authored-by: Yongqiang YANG <98214048+dataroaring@users.noreply.github.com>
…apache#37539) FIX: When dropping dynamic partition, PR apache#35778 will use math.max(start, -history_partition_num) as the first partition, but it may delete users' partitions if they specify both start and history_partition_num inappropriately. For safety reason, revert this behavious changed, only use start as the first partition when dropping partitions. For those who had specified a very small start value, drop partitions will catch an exception , and stop dropping this table's partition and then record this error in dynamic info. Users can use command `SHOW DYNAMIC PARTITION TABLES FROM DBXXX` to know this error. From this error, it will give user hint to modify start if they really specify a error start. --------- Co-authored-by: Yongqiang YANG <98214048+dataroaring@users.noreply.github.com>
| addPartitionClauses = getAddPartitionClause(db, olapTable, partitionColumn, partitionFormat, | ||
| executeFirstTime); | ||
| } | ||
| clearDropPartitionFailedMsg(olapTable.getId()); |
There was a problem hiding this comment.
why call clearDropPartitionFailedMsg() here?
There was a problem hiding this comment.
This will cause the status to remain NORMAL even if add partition failed.
…apache#37539) FIX: When dropping dynamic partition, PR apache#35778 will use math.max(start, -history_partition_num) as the first partition, but it may delete users' partitions if they specify both start and history_partition_num inappropriately. For safety reason, revert this behavious changed, only use start as the first partition when dropping partitions. For those who had specified a very small start value, drop partitions will catch an exception , and stop dropping this table's partition and then record this error in dynamic info. Users can use command `SHOW DYNAMIC PARTITION TABLES FROM DBXXX` to know this error. From this error, it will give user hint to modify start if they really specify a error start. --------- Co-authored-by: Yongqiang YANG <98214048+dataroaring@users.noreply.github.com>
FIX:
When dropping dynamic partition, PR #35778 will use math.max(start, -history_partition_num) as the first partition, but it may delete users' partitions if they specify both start and history_partition_num inappropriately. For safety reason, revert this behavious changed, only use start as the first partition when dropping partitions.
For those who had specified a very small start value, drop partitions will catch an exception , and stop dropping this table's partition and then record this error in dynamic info. Users can use command
SHOW DYNAMIC PARTITION TABLES FROM DBXXXto know this error. From this error, it will give user hint to modify start if they really specify a error start.