-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[bug](cloud restore) Fix load failed after table restore #60212
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
TPC-H: Total hot run time: 30997 ms |
TPC-DS: Total hot run time: 171357 ms |
ClickBench: Total hot run time: 26.89 s |
FE UT Coverage ReportIncrement line coverage |
FE Regression Coverage ReportIncrement line coverage |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
lide-reed
left a comment
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.
LGTM
### What problem does this PR solve? How to reproduce: 1、create a table with 3 replica and backup it to repo ``` CREATE TABLE `test_tbl_3_replica` ( `companyId` bigint NULL, `jobId` bigint NULL, `province` text NULL, `vCallerId` bigint NULL DEFAULT "0", `aCallerId` bigint NULL DEFAULT "-1" ) ENGINE=OLAP DUPLICATE KEY(`companyId`) DISTRIBUTED BY HASH(`companyId`) BUCKETS 8 PROPERTIES ( "replication_allocation" = "tag.location.default: 3" ); ``` 2、set `reserve_replica = true` in restore command. ``` RESTORE SNAPSHOT test.`snapshot_label` FROM `test_repo` PROPERTIES ( "backup_timestamp" = "2026-01-23-16-20-57", "reserve_replica" = "true"); ``` 3、after restore finished, insert into the restored table. ``` mysql> insert into test_tbl_3_replica values(100,100,'广东',3,3); Error1105:errCode=2, detailMessage = tablet 1768908267608 alive replicanum 1 < load required replicanum 2, alivebackends: [1768462881465] ```
What problem does this PR solve?
How to reproduce:
1、create a table with 3 replica and backup it to repo
2、set
reserve_replica = truein restore command.3、after restore finished, insert into the restored table.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)