allisonwang-db commented on code in PR #52749:
URL: https://github.com/apache/spark/pull/52749#discussion_r2467554253


##########
core/src/main/scala/org/apache/spark/api/python/PythonRunner.scala:
##########
@@ -857,6 +868,14 @@ private[spark] abstract class BasePythonRunner[IN, OUT](
           }
         }
       }
+      if (n == -1 && pythonWorkerKilled) {
+        val base = "Python worker process terminated due to idle timeout " +
+          s"(timeout: $idleTimeoutSeconds seconds)"
+        val msg = tryReadFaultHandlerLog(faultHandlerEnabled, 
handle.map(_.pid.toInt))
+          .map(error => s"$base: $error")
+          .getOrElse(base)
+        throw new SparkException(msg)

Review Comment:
   Shall we create a new exception? Like PythonWorkerException? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to