Help Center/ AI DataLake/ Aura reference/ GUC Parameters/ Checkpoint-based Fault Recovery
Updated on 2026-11-09 GMT+08:00

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

Table 1 Checkpoint-based fault recovery parameters

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].

  • 0: Checkpoint-based fault recovery is disabled. After a DN crashes, the CN directly reports an error to the user and the query is terminated.
  • [1, 10]: Checkpoint-based fault recovery is enabled. After a DN actor crashes, the CN automatically intercepts the failure, stops the old actor, creates a new actor, rebinds the connection, and resumes the execution. The query is retried for a maximum of the specified number of times. If the number of retries exceeds the specified value, the query is terminated and the original DN error is reported.

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;