Skip to content

Commit

Permalink
Retry IOException: Error writing request body to server to fix the
Browse files Browse the repository at this point in the history
intermittent failure when uploading to gcs
  • Loading branch information
yihanzhen committed Jul 9, 2018
1 parent 71637ce commit 01506e0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ public static boolean isRetryable(boolean idempotent, IOException exception) {
|| exception instanceof SocketException
|| (exception instanceof SSLHandshakeException
&& !(exception.getCause() instanceof CertificateException))
|| "insufficient data written".equals(exception.getMessage());
|| "insufficient data written".equals(exception.getMessage())
|| "Error writing request body to server".equals(exception.getMessage());
return idempotent && exceptionIsRetryable;
}

Expand Down

0 comments on commit 01506e0

Please sign in to comment.