Skip to content

Commit

Permalink
Change socket "connection refused" message match pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed May 19, 2023
1 parent 86e5b7a commit 78178b1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -159,7 +159,7 @@ class KyuubiSessionImpl(
} catch {
case e: org.apache.thrift.transport.TTransportException
if attempt < maxAttempts && e.getCause.isInstanceOf[java.net.ConnectException] &&
e.getCause.getMessage.contains("Connection refused (Connection refused)") =>
e.getCause.getMessage.contains("Connection refused") =>
warn(
s"Failed to open [${engine.defaultEngineName} $host:$port] after" +
s" $attempt/$maxAttempts times, retrying",
Expand Down

0 comments on commit 78178b1

Please sign in to comment.