Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not retry on ConnectionClosedException in branch 0.7 #471

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

linzhou-db
Copy link
Collaborator

Do not retry on ConnectionClosedException, because it can be caused by invalid json returned from the delta sharing server.

The same PR as #467

@@ -71,6 +71,9 @@ private[sharing] object RetryUtils extends Logging {
false
}
case _: java.net.SocketTimeoutException => true
// do not retry on ConnectionClosedException because it can be caused by invalid json returned
// from the delta sharing server.
case _: org.apache.http.ConnectionClosedException => false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there other cases where this should be retried (for example, some networking error) which may be more common?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a good question, I'm not sure about the side effect of this change. As it's the client side change, we don't have good logs/stats on what are all the cases that trigger this error.

let me see if the current code works with a server side change, if not we can add more detailed check here but may still need it in some way.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SG.

@linzhou-db linzhou-db merged commit 48c49ce into delta-io:branch-0.7 Apr 10, 2024
4 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.

3 participants