xy720 opened a new pull request, #60229:
URL: https://github.com/apache/doris/pull/60229

   ### What problem does this PR solve?
   
   How to reproduce:
   
   Assume there are 2 compute groups: compute-group-1 and compute-group-2
   
   1、use @`compute-group-1`
   
   2、restore snapshot from repo
   
   ```
   RESTORE SNAPSHOT test.`snapshot_label` FROM `cos_repo` PROPERTIES ( 
"backup_timestamp" = "2026-01-25-18-52-40");
   ```
   
   3、when restore is running, trigger warm up cache at `compute_group_2` on the 
restoring table.
   
   There are many ways to trigger warm up job at `compute_group_2`, for example:
   
   3.1、start a warm up job at `compute_group_2`
   
   ```
   WARM UP COMPUTE GROUP `compute_group_2` WITH table restored_table;
   ```
   
   3.2、scale up `compute_group_2` with new node, the CloudTabletRebalancer will 
send warm up cache request.
   
   ```
   RuntimeLogger I20260122 16:25:20.029232 385377 
cloud_backend_service.cpp:177] warm_up_cache_async: enter, 
request=10.222.xx.82:8060, tablets num=1, tablet_ids=[1768910759115]
   RuntimeLogger I20260122 16:25:21.113046 385377 
cloud_backend_service.cpp:254] check_warm_up_cache_async: enter, request 
tablets num=1, tablet_ids=[1768910759115]
   ```
   
   4、wait until restore is finished
   
   5、select the restored table
   
   ```
   mysql> select * from restored_table limit 1;
   Error 1105: errCode = 2, detailMessage = 
(10.222.xx.35)[INTERNAL_ERROR]failed to get rowset meta: no valid 
compaction_cnt or cumulative_point given. req_bc_cnt=0, bc_cnt=0, req_cc_cnt=0, 
cc_cnt=0 req_fc_cnt=0, fc_cnt=0, req_cp=2, cp=-1 tablet_id=1768910759115, 
tablet_id=1768910759115 table_id=1768910759110 index_id=1768910759111 
partition_id=1768910759112
   ```
   
   This commit:
   1、At FE, skip balance and warm-up restoring tables and partitions at 
CloudTabletRebalancer
   2、At meta service, when creating tablet meta belongs to restoring table, 
init the cp to -1. Because the restoring tablet meta may be pull to other 
compute groups as cache.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [ ] Regression test
       - [x] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   - Behavior changed:
       - [x] No.
       - [ ] Yes. <!-- Explain the behavior change -->
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes. <!-- Add document PR link here. eg: 
https://github.com/apache/doris-website/pull/1214 -->
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should 
merge into -->
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to