-
- Downloads
[SPARK-20461][CORE][SS] Use UninterruptibleThread for Executor and fix the...
[SPARK-20461][CORE][SS] Use UninterruptibleThread for Executor and fix the potential hang in CachedKafkaConsumer ## What changes were proposed in this pull request? This PR changes Executor's threads to `UninterruptibleThread` so that we can use `runUninterruptibly` in `CachedKafkaConsumer`. However, this is just best effort to avoid hanging forever. If the user uses`CachedKafkaConsumer` in another thread (e.g., create a new thread or Future), the potential hang may still happen. ## How was this patch tested? The new added test. Author: Shixiong Zhu <shixiong@databricks.com> Closes #17761 from zsxwing/int.
Showing
- core/src/main/scala/org/apache/spark/executor/Executor.scala 17 additions, 2 deletionscore/src/main/scala/org/apache/spark/executor/Executor.scala
- core/src/main/scala/org/apache/spark/util/UninterruptibleThread.scala 7 additions, 1 deletion...n/scala/org/apache/spark/util/UninterruptibleThread.scala
- core/src/test/scala/org/apache/spark/executor/ExecutorSuite.scala 13 additions, 0 deletions.../test/scala/org/apache/spark/executor/ExecutorSuite.scala
- external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/CachedKafkaConsumer.scala 13 additions, 2 deletions...a/org/apache/spark/sql/kafka010/CachedKafkaConsumer.scala
Please register or sign in to comment