aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/scala/org/apache/spark/DebugFilesystem.scala
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/scala/org/apache/spark/DebugFilesystem.scala')
-rw-r--r--core/src/test/scala/org/apache/spark/DebugFilesystem.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/test/scala/org/apache/spark/DebugFilesystem.scala b/core/src/test/scala/org/apache/spark/DebugFilesystem.scala
index fb8d701ebd..72aea84111 100644
--- a/core/src/test/scala/org/apache/spark/DebugFilesystem.scala
+++ b/core/src/test/scala/org/apache/spark/DebugFilesystem.scala
@@ -44,7 +44,8 @@ object DebugFilesystem extends Logging {
logWarning("Leaked filesystem connection created at:")
exc.printStackTrace()
}
- throw new RuntimeException(s"There are $numOpen possibly leaked file streams.")
+ throw new IllegalStateException(s"There are $numOpen possibly leaked file streams.",
+ openStreams.values().asScala.head)
}
}
}