-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-1724] [Bug] Snowflake Account/Password Auth Failures Should Not Trigger A Retry #373
Comments
Thanks for opening @beauxparker ! It feels reasonable to expect to not retry in the case of an "Incorrect username or password was specified" error. In fact, you make a compelling case why it is desireable to not retry. Selfishly, I decided not to reproduce this -- I'm going to trust your log output on this one 😎 What I think is going onHere is where I think the retry is happening in dbt-snowflake. So it'd be a matter of determining which type of Snowflake error is being raised and then making sure it isn't in the But I have a few unconfirmed suspicions:
If that's all true, then that means snowflake-connector-python is bundling all these different errors into
With my naive eyes, I'd expect only 408's to be retryable, but not 400's, 403's, or 405's. 🤷 Next stepsAs a result of the above, I'm not sure what the the consequences would be of changing the behavior of dbt to not retry |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
Reopening this because it has bitten me a few times this month getting ready for the hackathon.
I think this is right (backed up by this SO post). Did we get a ruling from anyone on the adapters team? Would this be better as an issue on the snowflake-connector-python repo, suggesting that 408s should be the only 4xx error that are retryable? |
Thanks for re-opening @joellabes! At the most detailed level, this seems like an issue within snowflake-connector-python itself. i.e. it is categorizing 403's, etc as being "retryable" here as introduced in this commit. It would be solved "automatically" if snowflake-connector-python reduced the scope of HTTP codes included in Assuming they can't or won't, I'm going to re-label this as "help wanted" for a motivated community member to take on. Acceptance criteria
|
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
Is this a new bug in dbt-snowflake?
Current Behavior
Currently on job runs if the environment's deployment credentials are incorrect, dbt will attempt to open a Snowflake connection 3 times, stating "Snowflake adapter: Got a retryable error when attempting to open a snowflake connection." This can lead to the user being temporarily locked out in Snowflake for the cooldown period, unless their system administrator takes action.
Expected Behavior
I think it would be ideal if the connection was not attempted more than once if the user's credentials are incorrect as to not lock the user out/
Steps To Reproduce
Relevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: