Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AFEB110BED for ; Thu, 20 Nov 2014 19:27:34 +0000 (UTC) Received: (qmail 95982 invoked by uid 500); 20 Nov 2014 19:27:34 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 95956 invoked by uid 500); 20 Nov 2014 19:27:34 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 95837 invoked by uid 99); 20 Nov 2014 19:27:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2014 19:27:34 +0000 Date: Thu, 20 Nov 2014 19:27:34 +0000 (UTC) From: "Erik Erlandson (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (SPARK-4514) ComplexFutureAction does not preserve job group IDs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Erik Erlandson created SPARK-4514: ------------------------------------- Summary: ComplexFutureAction does not preserve job group IDs Key: SPARK-4514 URL: https://issues.apache.org/jira/browse/SPARK-4514 Project: Spark Issue Type: Bug Components: Spark Core Reporter: Erik Erlandson The current job group id of a Spark context is stored in the {{localProperties}} member value. This data structure is designed to be thread local, and its settings are not preserved when {{ComplexFutureAction}} instantiates a new {{Future}}. One consequence of this is that {{takeAsync()}} does not behave in the same way as other async actions, e.g. {{countAsync()}}. For example, this test (if copied into StatusTrackerSuite.scala), will fail, because {{"my-job-group2"}} is not propagated to the Future which actually instantiates the job: {code:java} test("getJobIdsForGroup() with takeAsync()") { sc = new SparkContext("local", "test", new SparkConf(false)) sc.setJobGroup("my-job-group2", "description") sc.statusTracker.getJobIdsForGroup("my-job-group2") should be (Seq.empty) val firstJobFuture = sc.parallelize(1 to 1000, 1).takeAsync(1) val firstJobId = eventually(timeout(10 seconds)) { firstJobFuture.jobIds.head } eventually(timeout(10 seconds)) { sc.statusTracker.getJobIdsForGroup("my-job-group2") should be (Seq(firstJobId)) } } {code} It also impacts current PR for SPARK-1021, which involves additional uses of {{ComplexFutureAction}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org