Skip to content

Commit

Permalink
[qob] retry stream is already closed (#13104)
Browse files Browse the repository at this point in the history
  • Loading branch information
danking authored May 23, 2023
1 parent 8e96d8e commit e90cf2b
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 @@ -12,6 +12,7 @@ import org.apache.http.conn.HttpHostConnectException
import org.apache.log4j.{LogManager, Logger}

import is.hail.shadedazure.reactor.core.Exceptions.ReactiveException
import is.hail.shadedazure.com.azure.storage.common.implementation.Constants
import scala.util.Random
import java.io._
import com.google.cloud.storage.StorageException
Expand Down Expand Up @@ -41,6 +42,9 @@ package object services {
// true error.
val e = is.hail.shadedazure.reactor.core.Exceptions.unwrap(_e)
e match {
case e: RuntimeException
if e.getMessage != null && e.getMessage == Constants.STREAM_CLOSED =>
true
case e: SocketException
if e.getMessage != null && e.getMessage.contains("Connection reset") =>
true
Expand Down

0 comments on commit e90cf2b

Please sign in to comment.