Skip to content

Commit

Permalink
Change semantics when it comes to retries
Browse files Browse the repository at this point in the history
Retry only when certain conditions happen,
instead of aborting when they not happen
  • Loading branch information
oskar-szwajkowski authored and electrum committed Aug 13, 2024
1 parent 8e92e09 commit 5f191af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public ReadSession create(ConnectorSession session, TableId remoteTable, List<St
.withMaxRetries(maxCreateReadSessionRetries)
.withBackoff(10, 500, MILLIS)
.onRetry(event -> log.debug("Request failed, retrying: %s", event.getLastException()))
.abortOn(failure -> !BigQueryUtil.isRetryable(failure))
.handleIf(BigQueryUtil::isRetryable)
.build())
.get(() -> {
try {
Expand Down

0 comments on commit 5f191af

Please sign in to comment.