Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(writer): Initialise retry settings with a delay between retires (G…
…oogleCloudDataproc#1030) - The current retry settings was initialised with max attempts only, this initialises the delay between runs to 0, meaning that the 5 calls will happen with 0 millis between them and not actually an exponential retry strategy like it implies here: https://github.com/GoogleCloudDataproc/spark-bigquery-connector/blob/741bdb33bf5c06fb3fad9defffa65ea1470d2690/bigquery-connector-common/src/main/java/com/google/cloud/bigquery/connector/common/BigQueryDirectDataWriterHelper.java#L133-L142 (ran a test for the retryCallable method with the current settings and indeed the delay was 0 between calls) - So we initialise, it with the same settings as reading (can be tuned later) as otherwise the API is hammered leading to all failures
- Loading branch information