Class InsertRetryPolicy
java.lang.Object
org.apache.beam.sdk.io.gcp.bigquery.InsertRetryPolicy
- All Implemented Interfaces:
Serializable
A retry policy for streaming BigQuery inserts.
This retry policy currently applies only to per-element errors within successful (200 OK)
BigQuery responses. Non-200 responses (e.g., 400 Bad Request, 500 Internal Server Error) will
result in a RuntimeException
and bundle failure. The subsequent handling of the failed
bundle (e.g., retry or final failure) is determined by the specific Runner's fault tolerance
mechanisms.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Contains information about a failed insert. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InsertRetryPolicy
Always retry all failures.static InsertRetryPolicy
Never retry any failures.static InsertRetryPolicy
Retry all failures except for known persistent errors.abstract boolean
shouldRetry
(InsertRetryPolicy.Context context) Return true if this failure should be retried.
-
Constructor Details
-
InsertRetryPolicy
public InsertRetryPolicy()
-
-
Method Details
-
shouldRetry
Return true if this failure should be retried. -
neverRetry
Never retry any failures. -
alwaysRetry
Always retry all failures. -
retryTransientErrors
Retry all failures except for known persistent errors.
-