Skip to content

Commit 0e75069

Browse files
authored
Merge pull request #132 from danielvdende/master
Handle case of 0 connect retries better for HTTP Spark Connections
2 parents 04e1fb9 + f1af611 commit 0e75069

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
### Under the hood
77
- Add changelog, issue templates ([#119](https://github.com/fishtown-analytics/dbt-spark/pull/119), [#120](https://github.com/fishtown-analytics/dbt-spark/pull/120))
88

9+
### Fixes
10+
- Handle case of 0 retries better for HTTP Spark Connections ([#132](https://github.com/fishtown-analytics/dbt-spark/pull/132))
11+
12+
### Contributors
13+
- [@danielvdende](https://github.com/danielvdende) ([#132](https://github.com/fishtown-analytics/dbt-spark/pull/132))
14+
915
## dbt-spark 0.18.1.1 (November 13, 2020)
1016

1117
### Fixes

dbt/adapters/spark/connections.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def open(cls, connection):
401401
msg += ', is your token valid?'
402402
raise dbt.exceptions.FailedToConnectException(msg) from e
403403
retryable_message = _is_retryable_error(e)
404-
if retryable_message:
404+
if retryable_message and creds.connect_retries > 0:
405405
msg = (
406406
f"Warning: {retryable_message}\n\tRetrying in "
407407
f"{creds.connect_timeout} seconds "

0 commit comments

Comments
 (0)