Snow 1853185 jdbc driver v3.16 native okta http retry storm#2064
Merged
sfc-gh-fpawlowski merged 106 commits intomasterfrom Mar 11, 2025
Merged
Conversation
… into SNOW-1853185-JDBC-Driver-v3.16-Native-Okta-HTTP-Retry-Storm
…ative-Okta-HTTP-Retry-Storm' into SNOW-1853185-JDBC-Driver-v3.16-Native-Okta-HTTP-Retry-Storm
…-HTTP-Retry-Storm
…ative-Okta-HTTP-Retry-Storm' into SNOW-1853185-JDBC-Driver-v3.16-Native-Okta-HTTP-Retry-Storm
…-HTTP-Retry-Storm
…-HTTP-Retry-Storm
sfc-gh-pmotacki
approved these changes
Mar 6, 2025
Contributor
sfc-gh-mkubik
left a comment
There was a problem hiding this comment.
Is the failing StatementLatestIT.testSetQueryTimeoutForAsyncQueryUsingConnectionProperty test somehow related to the changes made in this PR or it's just some flaky test that failed randomly?
Contributor
Author
Seems like there were some temporary issues - I reran the failed jobs and they passed. |
sfc-gh-pfus
reviewed
Mar 10, 2025
sfc-gh-mkubik
approved these changes
Mar 10, 2025
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Overview
SNOW-1853185
Pre-review self checklist
masterbranchmvn -P check-style validate)mvn verifyand inspecttarget/japicmp/japicmp.html)SNOW-XXXX:External contributors - please answer these questions before submitting a pull request. Thanks!
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Issue: #NNNN
Fill out the following pre-review checklist:
@SnowflakeJdbcInternalApi(note that public/protected methods/fields in classes marked with this annotation are already internal)Please describe how your code solves the related issue.
The issue with the previous code was that each time we did not succeed in authenticating using OKTA we threw an exception (Authentication timeout). It was caught in the outer loop and all steps were redone.
There were two major issues - described in the Jira task. First of all we did not wait before retrying those steps - because the exception was thrown before sleeping for the backoff time. Second problem was retrying all steps, while usually some of them were unnecessary (especially the first step of the federated auth flow).
To make code more modular the chosen solution included creating 2 classes.