Skip to content

Conversation

@emmyzhou-db
Copy link
Contributor

@emmyzhou-db emmyzhou-db commented Jun 26, 2025

What changes are proposed in this pull request?

This PR adds a new configuration option to control asynchronous token refresh behavior in the Databricks SDK for Java.

Changes

  • Added disableAsyncTokenRefresh configuration to DatabricksConfig with environment variable DATABRICKS_DISABLE_ASYNC_TOKEN_REFRESH
  • Async token refresh is enabled by default for optimal performance

To disable async token refresh

Environment Variable:

export DATABRICKS_DISABLE_ASYNC_TOKEN_REFRESH=true

Programmatic:

DatabricksConfig config = new DatabricksConfig()
    .setDisableAsyncTokenRefresh(true);

How is this tested?

Existing unit and integration tests.

@emmyzhou-db emmyzhou-db changed the title Emmyzhou db/disable async via config Enable Async Token Refresh by Default via Config Jun 27, 2025
@emmyzhou-db emmyzhou-db changed the title Enable Async Token Refresh by Default via Config Add Configuration Option to Disable Async Token Refresh Jun 27, 2025
@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: 478
  • Commit SHA: 70e576c582cc3e5460252ee6f980537cde2d33dc

Checks will be approved automatically on success.

@emmyzhou-db emmyzhou-db added this pull request to the merge queue Jun 27, 2025
Merged via the queue into main with commit f0582e8 Jun 27, 2025
15 checks passed
@emmyzhou-db emmyzhou-db deleted the emmyzhou-db/disable-async-via-config branch June 27, 2025 15:26
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.

4 participants