You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by vanzin <gi...@git.apache.org> on 2017/07/11 00:17:11 UTC

[GitHub] spark issue #18594: [SPARK-20904][core] Don't report task failures to driver...

Github user vanzin commented on the issue:

    https://github.com/apache/spark/pull/18594
  
    Here's the hacky test code for the interested:
    
    ```
    sc.parallelize(1 to 100, 100).foreach { _ =>
      var shuttingDown = false
      
      while (!shuttingDown) {
        try {
          val hook = new Thread {
            override def run() {}
          }
          // scalastyle:off runtimeaddshutdownhook
          Runtime.getRuntime.addShutdownHook(hook)
          // scalastyle:on runtimeaddshutdownhook
          Runtime.getRuntime.removeShutdownHook(hook)
          
          Thread.sleep(10)
        } catch {
          case ise: IllegalStateException => shuttingDown = true
        }
      }
    
      throw new Exception("Task failure during shutdown.")
    }
    ```
    
    Ran that in two shells, one in a low priority queue and one in a high priority one, restarting the high priority one to force several rounds of executors being killed by preemption in the low priority queue.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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