File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
core/src/main/scala/org/apache/spark/util Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import java.io.OutputStream
2222import java .util .concurrent .ConcurrentHashMap
2323
2424import scala .reflect .ClassTag
25- import scala .util .control .NonFatal
25+ import scala .util .control .{ ControlThrowable , NonFatal }
2626
2727import org .apache .hadoop .fs .{FileSystem , Path }
2828
@@ -123,6 +123,7 @@ private[spark] class CheckpointingIterator[T: ClassTag](
123123 try {
124124 body
125125 } catch {
126+ case e : ControlThrowable => throw e
126127 case e : Throwable =>
127128 try {
128129 cleanup()
@@ -213,6 +214,7 @@ private[spark] object CheckpointingIterator {
213214 context,
214215 blockSize)
215216 } catch {
217+ case e : ControlThrowable => throw e
216218 case e : Throwable =>
217219 releaseLockForPartition(id)
218220 throw e
You can’t perform that action at this time.
0 commit comments