Checkpoint-based Fault Recovery
When AI DataLake processes multimodal data, operations such as accessing OBS or calling models during execution may cause access exceptions. You can enable checkpoint-based fault recovery to improve the query success rate.
Notes and Constraints
- Checkpoint-based fault recovery is enabled only for read-only narrow-dependency queries (SELECT) and is disabled for DML statements (INSERT/UPDATE/DELETE) to avoid side effects such as sequence number increment and data modification during retries.
- The retry granularity is at the DN level (the files (1 to n) processed by the DN are retried as a whole). As a result, duplicate query results may exist.
- Only the query model is supported. The session model is not supported.
- By default, enable_meta_scan is enabled for Iceberg tables. The query plan includes data redistribution between DNs, which breaks the narrow dependency of the original statement, causing checkpoint-based fault recovery to not take effect.
Parameter Description
| Parameter | Type | Description |
|---|---|---|
| checkpoint_resume_max_retries | Integer | Definition: Specifies the maximum number of checkpoint-based fault recovery retries on the CN after a DN crashes due to an error. After this function is enabled, the CN automatically intercepts the DN failure, rebuilds the DN, and resumes the execution. The CN retries the execution of N files on the DN at the file granularity. In addition, the number of retries is counted independently for each DN. In the multi-DN scenario, the retry of each DN does not affect that of other DNs. This parameter takes effect only for SELECT queries with narrow dependency. NOTE: Narrow dependency means that each parent partition is used by at most one child partition. Range: An integer, in the range [0, 10].
Default Value: 0. |
Example
Set the maximum number of checkpoint-based fault recovery retries on the CN to 3 after a DN error or crash occurs.
SET checkpoint_resume_max_retries = 3; SELECT udf(col) FROM table;
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot