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

[qob] retry stream is already closed #13104

Merged
merged 1 commit into from
May 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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