Skip to content

Commit

Permalink
[query] retry Tag mismatch a limited number of times (hail-is#14094)
Browse files Browse the repository at this point in the history
Wenhan observed this error after I gave her a branch using google cloud
storage 2.30.1. I've reported this new transient error to the client API
repo, but I doubt it will be fixed.
googleapis/java-storage#2337

SSL errors seem like the kind of thing we should not retry forever since
they could indicate a bad actor.
  • Loading branch information
danking authored Dec 13, 2023
1 parent f355886 commit 1286c1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hail/src/main/scala/is/hail/services/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ package object services {
// at sun.nio.ch.IOUtil.read(IOUtil.java:192) ~[?:1.8.0_362]
// at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379) ~[?:1.8.0_362]
true
case e: SSLException
if e.getMessage != null && e.getMessage.contains("Tag mismatch!") =>
// https://github.com/googleapis/java-storage/issues/2337
true
case e =>
val cause = e.getCause
cause != null && isLimitedRetriesError(cause)
Expand Down

0 comments on commit 1286c1c

Please sign in to comment.