Github user zsxwing commented on the issue: https://github.com/apache/spark/pull/16052 @uncleGen Could you add the following test to StreamingContextSuite? Otherwise, LGTM. ```Scala test("SPARK-18560 Receiver data should be deserialized properly.") { // Start a two nodes cluster, so receiver will use one node, and Spark jobs will use the // other one. Then Spark jobs need to fetch remote blocks and it will trigger SPARK-18560. val conf = new SparkConf().setMaster("local-cluster[2,1,1024]").setAppName(appName) sc = new SparkContext(conf) ssc = new StreamingContext(sc, Milliseconds(100)) val input = ssc.receiverStream(new TestReceiver) input.count().foreachRDD { rdd => // Make sure we can read from BlockRDD if (rdd.collect().headOption.getOrElse(0L) > 0) { // Stop StreamingContext to unblock "awaitTerminationOrTimeout" new Thread() { setDaemon(true) override def run(): Unit = { ssc.stop(stopSparkContext = true, stopGracefully = true) } }.start() } } ssc.start() ssc.awaitTerminationOrTimeout(60000) } ```
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org