dbt compile fails against redshift when using multi-threading #2756
Labels
bug
Something isn't working
good_first_issue
Straightforward + self-contained changes, good for new contributors!
redshift
Milestone
Describe the bug
When I run
dbt compile
against our redshift data warehouse the command fails with the errorThe error only occurs when threads > 1 and
method: iam
is used.From what I can gather this is happening because the boto session object is not thread safe and it is being accessed from multiple threads without being protected, and this happens during the call to get_tmp_iam_cluster_credentials.
Steps To Reproduce
dbt compile
Expected behavior
That
dbt compile
succeeds.Screenshots and log output
Sometimes the error returned is
but the stack trace is identical.
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
macOS Catalina
The output of
python --version
:Python 3.7.3
Additional context
The error surfaced after I bumped dbt from version 0.14.2 to 0.17.2
The text was updated successfully, but these errors were encountered: