Skip to content

Commit 139b0db

Browse files
author
Davies Liu
committed
capture the exception in python write thread
1 parent a38e23c commit 139b0db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private[spark] class PythonRDD(
202202
this.interrupt()
203203
}
204204

205-
override def run(): Unit = Utils.logUncaughtExceptions {
205+
override def run(): Unit = Utils.tryLog {
206206
try {
207207
val stream = new BufferedOutputStream(worker.getOutputStream, bufferSize)
208208
val dataOut = new DataOutputStream(stream)

0 commit comments

Comments
 (0)