Skip to content
Snippets Groups Projects
Commit f5df729b authored by Holden Karau's avatar Holden Karau
Browse files

Explicitly catch all throwables (warning in 2.10)

parent b8949cab
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ private[spark] class CacheManager(blockManager: BlockManager) extends Logging { ...@@ -27,7 +27,7 @@ private[spark] class CacheManager(blockManager: BlockManager) extends Logging {
if (loading.contains(key)) { if (loading.contains(key)) {
logInfo("Loading contains " + key + ", waiting...") logInfo("Loading contains " + key + ", waiting...")
while (loading.contains(key)) { while (loading.contains(key)) {
try {loading.wait()} catch {case _ =>} try {loading.wait()} catch {case _ : Throwable =>}
} }
logInfo("Loading no longer contains " + key + ", so returning cached result") logInfo("Loading no longer contains " + key + ", so returning cached result")
// See whether someone else has successfully loaded it. The main way this would fail // See whether someone else has successfully loaded it. The main way this would fail
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment