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 classContains information about a failed insert. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InsertRetryPolicyAlways retry all failures.static InsertRetryPolicyNever retry any failures.static InsertRetryPolicyRetry all failures except for known persistent errors.abstract booleanshouldRetry(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.
-