Return-Path: X-Original-To: apmail-spark-reviews-archive@minotaur.apache.org Delivered-To: apmail-spark-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 88B2211B91 for ; Mon, 31 Mar 2014 01:43:29 +0000 (UTC) Received: (qmail 15458 invoked by uid 500); 31 Mar 2014 01:43:29 -0000 Delivered-To: apmail-spark-reviews-archive@spark.apache.org Received: (qmail 15425 invoked by uid 500); 31 Mar 2014 01:43:29 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@spark.apache.org Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 15416 invoked by uid 99); 31 Mar 2014 01:43:29 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2014 01:43:29 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id CC9EF8874C5; Mon, 31 Mar 2014 01:43:28 +0000 (UTC) From: markhamstra To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark pull request: SPARK-1235: kill the application when DAGSched... Content-Type: text/plain Message-Id: <20140331014328.CC9EF8874C5@tyr.zones.apache.org> Date: Mon, 31 Mar 2014 01:43:28 +0000 (UTC) Github user markhamstra commented on a diff in the pull request: https://github.com/apache/spark/pull/186#discussion_r11102108 --- Diff: core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala --- @@ -150,7 +162,10 @@ class DAGScheduler( } } })) - } + })) + + // set the dagscheduler until after the actor system is ready + taskScheduler.setDAGScheduler(this) --- End diff -- Well, you can't access it as `this` since `this` means something else within the eventProcessActor, but I think this should work: ```scala private[this] val thisDAGScheduler = this env.actorSystem.actorOf(Props(new Actor { // the Supervisor ... eventProcessActor = context.actorOf(Props(new Actor { ... override def preStart() { taskScheduler.setDAGScheduler(thisDAGScheduler) } ... ``` --- 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. ---