Skip to content

Commit

Permalink
Do not retry on ConnectionClosedException (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhou-db authored Apr 9, 2024
1 parent 762ad49 commit e368d58
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
case _: InterruptedException => false
case _: InterruptedIOException => false
case _: IOException => true
Expand Down

0 comments on commit e368d58

Please sign in to comment.