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 92F53176A1 for ; Fri, 13 Feb 2015 14:45:12 +0000 (UTC) Received: (qmail 93062 invoked by uid 500); 13 Feb 2015 14:45:11 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 93024 invoked by uid 500); 13 Feb 2015 14:45:11 -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 93014 invoked by uid 99); 13 Feb 2015 14:45:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2015 14:45:11 +0000 Date: Fri, 13 Feb 2015 14:45:11 +0000 (UTC) From: "Sean Owen (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SPARK-5744) RDD.isEmpty / take fails for (empty) RDD of Nothing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-5744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Owen updated SPARK-5744: ----------------------------- Priority: Minor (was: Critical) Assignee: Tobias Bertelsen Summary: RDD.isEmpty / take fails for (empty) RDD of Nothing (was: RDD.isEmpty fails when rdd contains empty partitions.) > RDD.isEmpty / take fails for (empty) RDD of Nothing > --------------------------------------------------- > > Key: SPARK-5744 > URL: https://issues.apache.org/jira/browse/SPARK-5744 > Project: Spark > Issue Type: Bug > Components: Spark Core > Reporter: Tobias Bertelsen > Assignee: Tobias Bertelsen > Priority: Minor > Original Estimate: 0h > Remaining Estimate: 0h > > The implementation of {{RDD.isEmpty()}} fails if there is empty partitions. It was introduce by https://github.com/apache/spark/pull/4074 > Example: > {code} > sc.parallelize(Seq(), 1).isEmpty() > {code} > The above code throws an exception like this: > {code} > org.apache.spark.SparkDriverExecutionException: Execution error > at org.apache.spark.scheduler.DAGScheduler.handleTaskCompletion(DAGScheduler.scala:977) > at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1374) > at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1338) > at org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48) > Cause: java.lang.ArrayStoreException: [Ljava.lang.Object; > at scala.runtime.ScalaRunTime$.array_update(ScalaRunTime.scala:88) > at org.apache.spark.SparkContext$$anonfun$runJob$4.apply(SparkContext.scala:1466) > at org.apache.spark.SparkContext$$anonfun$runJob$4.apply(SparkContext.scala:1466) > at org.apache.spark.scheduler.JobWaiter.taskSucceeded(JobWaiter.scala:56) > at org.apache.spark.scheduler.DAGScheduler.handleTaskCompletion(DAGScheduler.scala:973) > at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1374) > at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1338) > at org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48) > {code} -- 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