You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by huitseeker <gi...@git.apache.org> on 2015/10/20 16:21:45 UTC

[GitHub] spark pull request: [SPARK-9966][STREAMING] Handle couple of corne...

Github user huitseeker commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8199#discussion_r42501304
  
    --- Diff: streaming/src/test/scala/org/apache/spark/streaming/scheduler/rate/PIDRateEstimatorSuite.scala ---
    @@ -116,13 +133,14 @@ class PIDRateEstimatorSuite extends SparkFunSuite with Matchers {
       }
     
       test("with some accumulated and some positive error, |I| > 0, stay below the processing speed") {
    -    val p = new PIDRateEstimator(20, 1D, .01D, 0D)
    +    val minRate = 10D
    +    val p = new PIDRateEstimator(20, 1D, .01D, 0D, minRate)
         val times = List.tabulate(50)(x => x * 20) // every 20ms
         val rng = new Random()
    -    val elements = List.tabulate(50)(x => rng.nextInt(1000))
    +    val elements = List.tabulate(50)(x => rng.nextInt(1000) + 1000)
    --- End diff --
    
    :+1: 


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