Repository navigation
Conversation
… connection resets Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Collaborator
✅ Integration test reportCommit: 8371621
Top 6 slowest tests (at least 2 minutes):
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Bundle commands and file uploads fail outright when the server drops the connection in two ways the SDK does not retry:
EOFonGET /api/2.0/preview/scim/v2/Me. This is the first API call of every bundle command (iamutil.GetCurrentUser), so one dropped connection fails the wholebundle deploy. A bareEOF(as opposed tounexpected EOF) means the server closed the connection during the TLS handshake, so the request was never sent. Over HTTP/2, Go reports a connection cut mid-request asunexpected EOF. The SDK retries neither, andGetCurrentUseronly retried HTTP 500.wsarecv: An existing connection was forcibly closed by the remote hoston Windows. This is WSAECONNRESET. The SDK retries a reset by matching the textconnection reset by peer, which only Unix uses, so on Windows a reset is not retried. It hit the overwriting upload ofstate/resources.jsonduringbundle deploy.Changes
retry.IsTransientReadnow also matches a*url.Errorthat wrapsio.EOFor WSAECONNRESET (syscall.Errno(10054); no Unix errno has that value).IsTransient, which non-idempotent calls use, is unchanged.iamutil.GetCurrentUsernow also retries the errorsIsTransientReadcovers, within its existing 30s bound.TestGetCurrentUserRetriesOn500set twoReturns on the same mock call, so the second replaced the first and the test never saw the 500. Each attempt now has its own expectation.Not retried, on purpose
POST /api/2.2/jobs/create: EOFfromdatabricks jobs create. A bare EOF over HTTP/2 is almost certainly a failed TLS handshake (the request was never sent), but over HTTP/1.1 (e.g. behind a proxy) it can also follow a request the server already applied, and a retried create would then make a duplicate job. In bundles, the direct engine's create recovery already covers uncertain creates.PUT /api/2.0/fs/files/...?overwrite=false: unexpected EOF. This is a test-setup write without overwrite: if the first attempt landed, a retry fails with "already exists", so it is not safely retriable either.Dashboard
Over the last 7 days, 11 of the 14 error/3840 failures fell within one window on Azure (2026-11-23 18:53–20:03 UTC), alongside many
unexpected EOFerrors on other endpoints. The other 3 were spread over AWS, GCP and Azure.Error: Get "[DATABRICKS_URL]/api/2.0/preview/scim/v2/Me": EOFError: Post "[DATABRICKS_URL]/api/2.0/workspace-files/import-file/[PATH]": read tcp <IP>-><IP>: wsarecv: An existing connection was forcibly closed by the remote host.Tests
IsTransientRead(bare EOF, WSAECONNRESET), plus a test against a real server that closes the connection, which checks the error the SDK actually returns.TestGetCurrentUserRetriesOnEOF. Both new tests fail without the fix.This pull request and its description were written by Isaac.