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-8975][Streaming] Adds a mechanism to se...
Date Wed, 22 Jul 2015 02:51:49 GMT
Github user tdas commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7471#discussion_r35177257
  
    --- Diff: streaming/src/test/scala/org/apache/spark/streaming/scheduler/ReceiverTrackerSuite.scala
---
    @@ -72,8 +78,62 @@ class ReceiverTrackerSuite extends TestSuiteBase {
         assert(locations(0).length === 1)
         assert(locations(3).length === 1)
       }
    +
    +  test("Receiver tracker - propagates rate limit") {
    +    object streamingListener extends StreamingListener {
    +      @volatile
    +      var started = false
    +
    +      override def onReceiverStarted(receiverStarted: StreamingListenerReceiverStarted):
Unit = {
    +        started = true
    +      }
    +    }
    +
    +    ssc.addStreamingListener(streamingListener)
    +    ssc.scheduler.listenerBus.start(ssc.sc)
    +
    +    val newRateLimit = 100L
    +    val ids = new TestReceiverInputDStream(ssc)
    --- End diff --
    
    ids --> dstream. I got confused with ids being IDs 


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