You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/07/25 16:08:58 UTC

[GitHub] [spark] WeichenXu123 edited a comment on issue #25235: [WIP][SPARK-28483][Core] Fix canceling a spark job using barrier mode but barrier tasks do not exit

WeichenXu123 edited a comment on issue #25235: [WIP][SPARK-28483][Core] Fix canceling a spark job using barrier mode but barrier tasks do not exit
URL: https://github.com/apache/spark/pull/25235#issuecomment-514520895
 
 
   The reason I do not use `thread.interrupt` to cancel the thread is:
   * In spark framework, when `Task.kill(interruptThread: Boolean, reason: String)` being called, the `interruptThread` flag is sometimes `false` which do not allow us to interrupt the task thread.
   * Even if we can interrupt the task thread, the scala `Future`(RPC requesting in `barrier()`) is running in a backgroud thread, we cannot get the backgroud thread handler so that still cannot interrupt it.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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