You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "LIU (Jira)" <ji...@apache.org> on 2024/10/21 02:55:00 UTC

[jira] [Resolved] (SPARK-49448) Spark Connect ExecuteThreadRunner promise will always complete with success.

     [ https://issues.apache.org/jira/browse/SPARK-49448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

LIU resolved SPARK-49448.
-------------------------
    Resolution: Abandoned

> Spark Connect ExecuteThreadRunner promise will always complete with success.
> ----------------------------------------------------------------------------
>
>                 Key: SPARK-49448
>                 URL: https://issues.apache.org/jira/browse/SPARK-49448
>             Project: Spark
>          Issue Type: Improvement
>          Components: Connect
>    Affects Versions: 4.0.0
>            Reporter: LIU
>            Priority: Minor
>
> {code:java}
> private class ExecutionThread(onCompletionPromise: Promise[Unit])
>     extends Thread(s"SparkConnectExecuteThread_opId=${executeHolder.operationId}") {
>   override def run(): Unit = {
>     try {
>       execute()
>       onCompletionPromise.success(())
>     } catch {
>       case NonFatal(e) =>
>         onCompletionPromise.failure(e)
>     }
>   }
> }{code}
>  
> execute method end with ErrorUtils.handleError() function call.  if any excetion throw. it will not catch by promise. is it better to catch real exceptions with promises instead of?  if wants. i will submit this change.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org