Skip to content

Conversation

@renaudhartert-db
Copy link
Contributor

@renaudhartert-db renaudhartert-db commented Oct 15, 2025

What changes are proposed in this pull request?

This PR adds a config-level property to disable the default retry mechanism. That is, no request will be retried no matter its error code/status. This is implemented via a new retry strategy NoRetryStrategy which systematically returns false.

This PR addresses some of the limitations called out in issue: #289.

Why not providing control on the number of retries directly?

The number of retries should be considered an implementation detail of a specific retry strategy. The Databricks SDKs are meant to evolve to a model where the retry conditions are more and more server controlled (e.g. leverage the RetryInfo error details). Rather than providing control over the number of retries, we intent to provide users with control over (i) the overall timeout of the method call (including retries), and (ii) the retry strategy used on a specific client.

How is this tested?

Unit + Integration tests.

@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-java

Inputs:

  • PR number: 523
  • Commit SHA: e41898906e00dc58e179aefe0fe420fee238e586

Checks will be approved automatically on success.

@renaudhartert-db renaudhartert-db changed the title Add NoRetryStrategy Add DATABRICKS_DISABLE_RETRIES config option to disable the default retry mechanism. Oct 16, 2025
@renaudhartert-db renaudhartert-db marked this pull request as ready for review October 16, 2025 07:13
Copy link
Contributor

@Divyansh-db Divyansh-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@renaudhartert-db renaudhartert-db added this pull request to the merge queue Oct 16, 2025
Merged via the queue into main with commit e08f941 Oct 16, 2025
16 checks passed
@renaudhartert-db renaudhartert-db deleted the renaud-hartert_data/retries branch October 16, 2025 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants