Skip to content
Snippets Groups Projects
Commit 04b67999 authored by gcc's avatar gcc Committed by Sean Owen
Browse files

[SPARK-12048][SQL] Prevent to close JDBC resources twice

Author: gcc <spark-src@condor.rhaag.ip>

Closes #10101 from rh99/master.
parent b6e8e63a
No related branches found
No related tags found
No related merge requests found
......@@ -511,6 +511,7 @@ private[sql] class JDBCRDD(
} catch {
case e: Exception => logWarning("Exception closing connection", e)
}
closed = true
}
override def hasNext: Boolean = {
......
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