Pipeline Retry Options
On this page
Pipelines support enhanced retry behavior using retry_
configuration.
Overview
The retry_
clause provides fine-grained control over pipeline batch retries by specifying a JSON configuration.retry_
by default.max_
) are supported for versions earlier than 9.retry_
takes precedence.
Syntax
CREATE PIPELINE <pipeline_name> AS LOAD DATA FS '<data_path>'retry_options '{"exponential": true,"retry_interval": <ms>,"max_retry_interval": <ms>,"max_retries": <integer>}'INTO TABLE <table_name>FIELDS TERMINATED BY '<delimiter>'LINES TERMINATED BY '<line_terminator>';
Parameters
Key |
Type |
Description |
Default Setting |
---|---|---|---|
|
|
Enables exponential backoff logic when set to |
|
|
|
Initial wait time (in milliseconds) before the first retry attempt. |
|
|
|
Maximum wait time (in milliseconds) between retries. |
|
|
|
Total number of retries allowed before the pipeline fails. |
|
Remarks
-
The
retry_
value must be a valid JSON string.options -
Parameters in JSON can appear in any order.
-
If any required parameter is missing or parameter data types are incorrect, the pipeline creation fails with a configuration error.
-
In SingleStore versions earlier than 9.
0, if both retry_
andoptions max_
are not specified, the system usesretries_ per_ batch_ partition pipelines_
.max_ retries_ per_ batch_ partition
Examples
Exponential Backoff Retry
The following example uses an exponential backoff retry strategy to handle transient failures during the loading process.
CREATE PIPELINE sample_pipe AS LOAD DATA FS '/path/input.txt'retry_options '{"exponential": true,"retry_interval": 3000,"max_retry_interval": 50000,"max_retries": 5}'INTO TABLE tFIELDS TERMINATED BY ','LINES TERMINATED BY '\n';
Fixed Interval Retry
The following example uses a fixed interval retry strategy where exponential is set to false for the fixed delay.
CREATE PIPELINE example_pipe AS LOAD DATA FS '/path/input.txt'retry_options '{"exponential": false,"retry_interval": 3000,"max_retry_interval": 50000,"max_retries": 5}'INTO TABLE tFIELDS TERMINATED BY ','LINES TERMINATED BY '\n';
Error Handling
Common Error
ERROR 1706 (HY000): retry_options {...} could not be set. Refer documentation for correct syntax.
Causes
-
A required key is missing in the JSON.
-
The data type is incorrect.
-
A syntax error in the JSON (e.
g. , missing quotes or commas).
Last modified: August 25, 2025