Repository navigation
Classify Delta Sharing connection failures and retry BindException (#âĶ - #988
Merged
Merged
Conversation
) 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>
charlenelyu-db
approved these changes
Jul 14, 2026
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.
âĶ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.
Co-authored-by: Isaac