Return-Path: X-Original-To: apmail-spark-user-archive@minotaur.apache.org Delivered-To: apmail-spark-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36897188C8 for ; Wed, 7 Oct 2015 05:18:19 +0000 (UTC) Received: (qmail 43954 invoked by uid 500); 7 Oct 2015 05:18:14 -0000 Delivered-To: apmail-spark-user-archive@spark.apache.org Received: (qmail 43856 invoked by uid 500); 7 Oct 2015 05:18:14 -0000 Mailing-List: contact user-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@spark.apache.org Received: (qmail 43845 invoked by uid 99); 7 Oct 2015 05:18:14 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2015 05:18:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 22ADFC3F5F for ; Wed, 7 Oct 2015 05:18:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.966 X-Spam-Level: * X-Spam-Status: No, score=1.966 tagged_above=-999 required=6.31 tests=[SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ZiRikBYrKAj6 for ; Wed, 7 Oct 2015 05:18:04 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id EBD4420F7B for ; Wed, 7 Oct 2015 05:18:03 +0000 (UTC) Received: from mben.nabble.com (unknown [162.253.133.72]) by mwork.nabble.com (Postfix) with ESMTP id E73DC2A8CC9F for ; Tue, 6 Oct 2015 22:18:48 -0700 (PDT) Date: Tue, 6 Oct 2015 22:18:03 -0700 (MST) From: pnpritchard To: user@spark.apache.org Message-ID: <1444195083302-24965.post@n3.nabble.com> Subject: Help needed to reproduce bug MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi spark community, I was hoping someone could help me by running a code snippet below in the spark shell, and seeing if they see the same buggy behavior I see. Full details of the bug can be found in this JIRA issue I filed: https://issues.apache.org/jira/browse/SPARK-10942. The issue was closed due to cannot reproduce, however, I can't seem to shake it. I have worked on this for a while, removing all known variables, and trying different versions of spark (1.5.0, 1.5.1, master), and different OSs (Mac OSX, Debian Linux). My coworkers have tried as well and see the same behavior. This has me convinced that I cannot be the only one in the community to be able to produce this. If you have a minute or two, please open a spark shell and copy/paste the below code. After 30 seconds, check the spark ui, storage tab. If you see some cached RDDs listed, then the bug has been reproduced. If not, then there is no bug... and I may be losing my mind. Thanks in advance! Nick ------------ import org.apache.spark.streaming.{Seconds, StreamingContext} import scala.collection.mutable val ssc = new StreamingContext(sc, Seconds(1)) val inputRDDs = mutable.Queue.tabulate(30) { i => sc.parallelize(Seq(i)) } val input = ssc.queueStream(inputRDDs) val output = input.transform { rdd => if (rdd.isEmpty()) { rdd } else { val rdd2 = rdd.map(identity) rdd2.cache() rdd2.setName(rdd.first().toString) val rdd3 = rdd2.map(identity) ++ rdd2.map(identity) rdd3 } } output.print() ssc.start() -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Help-needed-to-reproduce-bug-tp24965.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@spark.apache.org For additional commands, e-mail: user-help@spark.apache.org