Skip to content

Classify Delta Sharing connection failures and retry BindException (#â€Ķ - #988

Merged
meow6589 merged 1 commit into
branch-1.4from
backportClassifyFailure
Jul 14, 2026
Merged

meow6589 merged 1 commit into
branch-1.4from
backportClassifyFailure

Conversation

@meow6589

Copy link
Copy Markdown
Collaborator

â€Ķ985)

When the client fails to establish an outbound connection to the sharing server (e.g. java.net.BindException from local ephemeral-port exhaustion, or ConnectException / UnknownHostException / NoRouteToHostException), the raw low-level exception propagated to the caller and surfaced as an opaque internal error.

  • RetryUtils.shouldRetry: retry BindException. It extends SocketException, whose branch only retries on "connection reset", so transient local port-exhaustion failures were never retried. The new case precedes the SocketException case since ordering matters.
  • DeltaSharingRestClient.getResponse: wrap the retry loop so a connection- establishment failure that survives retries is rethrown as a legible DeltaSharingConnectionException naming the endpoint, preserving the original as the cause. Retries still fire on the raw exception first.
  • Add DeltaSharingConnectionException and unit tests.

Co-authored-by: Isaac

)

When the client fails to establish an outbound connection to the sharing
server (e.g. java.net.BindException from local ephemeral-port exhaustion,
or ConnectException / UnknownHostException / NoRouteToHostException), the
raw low-level exception propagated to the caller and surfaced as an opaque
internal error.

- RetryUtils.shouldRetry: retry BindException. It extends SocketException,
  whose branch only retries on "connection reset", so transient local
  port-exhaustion failures were never retried. The new case precedes the
  SocketException case since ordering matters.
- DeltaSharingRestClient.getResponse: wrap the retry loop so a connection-
  establishment failure that survives retries is rethrown as a legible
  DeltaSharingConnectionException naming the endpoint, preserving the
  original as the cause. Retries still fire on the raw exception first.
- Add DeltaSharingConnectionException and unit tests.

Co-authored-by: Isaac

Co-authored-by: Wen Yi <wen.yi@databricks.com>
@meow6589
meow6589 requested a review from linzhou-db July 14, 2026 20:38
@meow6589
meow6589 merged commit 07694d6 into branch-1.4 Jul 14, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants