spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdas <...@git.apache.org>
Subject [GitHub] spark pull request: [SPARK-10369][Streaming]Don't remove ReceiverT...
Date Mon, 31 Aug 2015 19:01:30 GMT
Github user tdas commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8538#discussion_r38346647
  
    --- Diff: streaming/src/test/scala/org/apache/spark/streaming/scheduler/ReceiverTrackerSuite.scala
---
    @@ -60,6 +60,26 @@ class ReceiverTrackerSuite extends TestSuiteBase {
           }
         }
       }
    +
    +  test("should restart receiver after stopping it") {
    +    withStreamingContext(new StreamingContext(conf, Milliseconds(100))) { ssc =>
    +      @volatile var startTimes = 0
    +      ssc.addStreamingListener(new StreamingListener {
    +        override def onReceiverStarted(receiverStarted: StreamingListenerReceiverStarted):
Unit = {
    +          startTimes += 1
    +        }
    +      })
    +      val input = ssc.receiverStream(new StoppableReceiver)
    +      val output = new TestOutputStream(input)
    --- End diff --
    
    `input.register` is sufficient


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Mime
View raw message