You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues.
However, upon examining the code, it appears that retries are only attempted for the initial connection. If a connection is successfully established but encounters an error after a period of time (e.g., 10 minutes), the query is not retried.
We are experiencing intermittent errors that do not trigger the retry mechanism:
Database Error in model <redacted>
11:31:30 ('08S01', '[08S01] [Microsoft][ODBC Driver 18 for SQL Server]TCP Provider: Error code 0x274C (10060) (SQLExecDirectW)')
This error code (0x274C / 10060) suggests a connection timeout, but the retry option does not seem to address this issue.
Expected Behavior
The retry mechanism should work for both initial connections and subsequent query executions to handle intermittent network issues throughout the entire session.
Questions
Is this behavior intentional or a potential bug in the retry implementation?
Are there any workarounds or configuration options to handle these types of intermittent connection issues?
Is there a plan to extend the retry mechanism to cover query execution failures as well as initial connection failures?
Additional Information
dbt version: 1.7
Database: Azure SQL Server
ODBC Driver version: 18
The text was updated successfully, but these errors were encountered:
Current Behavior
The documentation states:
(Source: https://docs.getdbt.com/docs/core/connect-data-platform/mssql-setup#authentication-methods--profile-configuration)
However, upon examining the code, it appears that retries are only attempted for the initial connection. If a connection is successfully established but encounters an error after a period of time (e.g., 10 minutes), the query is not retried.
(Source:
dbt-sqlserver/dbt/adapters/sqlserver/sql_server_connection_manager.py
Line 152 in f789ab0
Issue
We are experiencing intermittent errors that do not trigger the retry mechanism:
This error code (0x274C / 10060) suggests a connection timeout, but the retry option does not seem to address this issue.
Expected Behavior
The retry mechanism should work for both initial connections and subsequent query executions to handle intermittent network issues throughout the entire session.
Questions
Additional Information
The text was updated successfully, but these errors were encountered: