Skip to content
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

Intermittent failures on dbt jobs due to Fabric connection error #112

Open
sophiad96 opened this issue Jan 18, 2024 · 9 comments
Open

Intermittent failures on dbt jobs due to Fabric connection error #112

sophiad96 opened this issue Jan 18, 2024 · 9 comments

Comments

@sophiad96
Copy link

A dbt user is experiencing intermittent job failures due to the following error occurring on different models:

('IMC06', '[IMC06] [Microsoft][ODBC Driver 18 for SQL Server]The connection is broken and recovery is not possible. The connection is marked by the client driver as unrecoverable. No attempt was made to restore the connection. (0) (SQLExecDirectW)')

This is causing frequent failures in job runs for this user, which impacts their production data.

@prdpsvs
Copy link
Collaborator

prdpsvs commented Jan 23, 2024

@sophiad96 , This is a transient error. The adapter is not using ConnectRetryCount property, which is exposed by ODBC. ODBC driver will attempt to automatically reestablish the connection if ConnectRetryCount and ConnectRetryInterval are provided. Let me add these options to the connection string to recover the connection. I will do a patch release 1.7.4 this week to handle this issue. I will use retries property in profiles.yaml file for ConnectRetryCount and add ConnectRetryInterval to profiles.yaml default to 2 seconds.

However, adapter is currently retrying connections manually. Are you providing retry option in the profiles.yaml? If not, please provide that and see if it helps.

@sophiad96
Copy link
Author

@prdpsvs thank you for this information! The user currently has their retries set to 5.

@sophiad96
Copy link
Author

@prdpsvs Curious if we have any updates to share with the customer?

@prdpsvs
Copy link
Collaborator

prdpsvs commented Feb 2, 2024

@sophiad96 , I came to know that there are connection drops reported by a few customers who are not using dbt as well. This issue is related to Fabric DW itself. However, the latest patch 1.7.4 will be available by tomorrow with ConnectRetryCount in the connection string.

@TheBishop-98
Copy link

When will this patch be available in dbt Cloud?

@amychen1776
Copy link

@SaintofSpadesSOA this patch should already be in dbt Cloud - has it resolved your issues?

@TheBishop-98
Copy link

@amychen1776 No. We have been experiencing the same errors since the aforementioned release above. Retries are still set at 5. It's does not always occur, but is still seen quite often.

@TheBishop-98
Copy link

@prdpsvs Is there any timeline to the issue being fixed by Microsoft pertaining to the Fabric DW? Have any of the affected customers you've previously mentioned found any workarounds to the issue? I encounter this issue daily which has pretty much thrown all reliability/dependability out the window with this tool.

@prdpsvs
Copy link
Collaborator

prdpsvs commented Dec 23, 2024

@TheBishop-98 , Are you still facing this issue? the adapter has a few configurations included in V1.8.9 including connection pooling and retrycount and retryconnect interval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants