Repository navigation
Add tokenCache in custom credentialProviders - #1129
Merged
samikshya-db merged 24 commits intoJan 1, 2026
Merged
samikshya-db merged 24 commits into
samikshya-db merged 24 commits into
Conversation
samikshya-db
marked this pull request as ready for review
December 11, 2025 05:26
gopalldb
reviewed
Dec 12, 2025
| this.token = | ||
| new Token( | ||
| DatabricksJdbcConstants.EMPTY_STRING, | ||
| DatabricksJdbcConstants.EMPTY_STRING, |
Collaborator
There was a problem hiding this comment.
isn't token exchange happening for every token if host is different? Though the actual token is cached in their own provider, but still exchanged token is not being reused. Can we cache that as well?
Collaborator
Author
There was a problem hiding this comment.
CachedTokenSource will cache this exchanged token - atleast till the time it expires. Or are you pointing at something else?
gopalldb
reviewed
Dec 12, 2025
gopalldb
reviewed
Dec 12, 2025
gopalldb
reviewed
Dec 12, 2025
gopalldb
reviewed
Dec 12, 2025
gopalldb
reviewed
Dec 12, 2025
gopalldb
reviewed
Dec 12, 2025
gopalldb
left a comment
Collaborator
There was a problem hiding this comment.
Can we do 1 manual testing for each of affected auth mechanisms?
gopalldb
approved these changes
Dec 16, 2025
gopalldb
left a comment
Collaborator
There was a problem hiding this comment.
Thanks, make sure that you verify these manually
Collaborator
Author
|
Tested each flow end to end, merging. |
- Fix DatabricksTokenFederationProvider initialization by removing problematic lazy initialization in fetchAndExchangeToken() - Fix ChunkDownloadTaskTest by adding missing mock for getLinkForChunk() and updating test expectations to account for link refetching - Fix StreamingChunkDownloadTaskTest by adding missing mock for refetchLink() The chunk download tests were failing because mocks weren't configured to handle link refetching that occurs during retries. The tests now properly account for the URL_FETCHED status transitions that occur when chunk links are refreshed. Signed-off-by: samikshya-chand_data <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Testing
Additional Notes to the Reviewer