Repository navigation
DAB read requests fail with error 40613 while Azure SQL Database (serverless) is resuming #3896
Replies: 2 comments 4 replies
|
Your three-attempt observation matches DAB's own query retry policy. I checked both v2.0.1-rc and v2.1.5:
One timing detail: DAB's configured backoffs in both versions are 2 seconds and 4 seconds, not 15 seconds. Time spent opening connections or waiting in the driver is additional, so the overall 51.5 seconds should not be interpreted as a 15-second Polly backoff. For auto-resume specifically, Microsoft's serverless documentation confirms that the first connection can return 40613 while waking the database. Without changing DAB's source, the practical options are:
Correlating the SQL database's resume-start/resume-complete events with the final DAB failure would confirm whether this request's budget expired before the database became ready. Error 40613 alone does not prove that auto-resume is the only cause. This is verified against the tagged source/schema and Microsoft's documentation; I haven't run your Container Apps/SQL deployment or measured its resume time. |
|
yes, it's the retry limit, and
mitigation without touching the source: give each open enough time to ride out the resume, in the connection string DAB uses: with that, a single if you can't accept that wait, avoid the pause: disable auto-pause ( |
Uh oh!
There was an error while loading. Please reload this page.
Read requests from Data API builder (DAB) running on Azure Container Apps to Azure SQL Database (serverless) are failing with error 40613. In each case, DAB made 3 attempts about 15 seconds apart, and the request failed after about 51.5 seconds. Changing the retry settings in the connection string (ConnectRetryCount=5) did not resolve the issue. In the DAB source code, the retry count is hardcoded as _maxRetryCount = 2.
■Environment
DAB version: 2.0.1-rc (container image)
Hosting: Azure Container Apps
Database: Azure SQL Database (serverless)
■Questions
Is the cause that DAB reached its retry limit (3 attempts)?
Can the retry count be changed through configuration in any version, including the latest version (v2.1.5)?
Without modifying the source code, what mitigation do you recommend?
Thank you for your support.
All reactions