Johnnyssc commented on PR #39595:
URL: https://github.com/apache/doris/pull/39595#issuecomment-2306078998

   test case for this pr
   ### restore tbl's partition p202408
   $ RESTORE SNAPSHOT db.tbl_p202408_test
   FROM repo
   ON(
       `tbl` PARTITION (p202408)
   )
   PROPERTIES(
       "backup_timestamp"="2024-08-22-20-32-37",
       "replication_num" = "1"
   );
   
   ###  check restore job state\G
   $ SHOW RESTORE\G
   *************************** 1. row ***************************
   JobId: 21741
   Label: tbl_p202408_test
   Timestamp: 2024-08-22-20-32-37
   State: DOWNLOADING
   RestoreObjs: {
     "name": "tbl_p202408_test",
     "database": "db",
     "olap_table_list": [
         {
             "name": "tbl",
             "partition_names": ["p202408"]
         }
   ]
   
   ### load to partition p202408, failed with exception
    curl --location-trusted -u root:"" \
   >   -H "label:tbl_test_load_19" \
   >   -H "timeout:300" \
   >   -H "format: parquet" \
   >   -T data_for_p202408.parquet \
   >   -XPUT http://fe_ip:8030/api/db/tbl/_stream_load
   {
       "TxnId": 3042,
       "Label": "tbl_test_load_19",
       "Comment": "",
       "TwoPhaseCommit": "false",
       "Status": "Fail",
       "Message": "[ANALYSIS_ERROR]TStatus: errCode = 2, detailMessage = Table 
[zt_order_detail_v3], Partition [p202408] is in restore process. Can not load 
into it.etc.",
       "NumberTotalRows": 682,
       "NumberLoadedRows": 682,
       "NumberFilteredRows": 0,
       "NumberUnselectedRows": 0,
       "LoadBytes": 82025,
       "LoadTimeMs": 48,
       "BeginTxnTimeMs": 0,
       "StreamLoadPutTimeMs": 7,
       "ReadDataTimeMs": 0,
       "WriteDataTimeMs": 38,
       "CommitAndPublishTimeMs": 0
   }
   
   ### load to partition p202408, successfully
   $ curl --location-trusted -u root:"" \
   >   -H "timeout:300" \
   >   -H "format: json" \
   >   -H "read_json_by_line:true" \
   >   -T  data_for_p202407.json \
   >   -XPUT http://fe_ip:8030/api/db/tbl/_stream_load
   {
       "TxnId": 3043,
       "Label": "2f2dae38-a495-4c22-9492-419ea70b724e",
       "Comment": "",
       "TwoPhaseCommit": "false",
       "Status": "Success",
       "Message": "OK",
       "NumberTotalRows": 1,
       "NumberLoadedRows": 1,
       "NumberFilteredRows": 0,
       "NumberUnselectedRows": 0,
       "LoadBytes": 1128,
       "LoadTimeMs": 51,
       "BeginTxnTimeMs": 0,
       "StreamLoadPutTimeMs": 6,
       "ReadDataTimeMs": 0,
       "WriteDataTimeMs": 30,
       "CommitAndPublishTimeMs": 13
   }


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to