Github user lw-lin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12797#discussion_r61663843
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamSuite.scala ---
    @@ -136,6 +136,22 @@ class StreamSuite extends StreamTest with 
SharedSQLContext {
           testStream(ds)()
         }
       }
    +
    +  // This would fail for now -- error is "Timed out waiting for stream"
    +  // Root cause is that data generated in batch 0 may not get processed in 
batch 1
    +  // Let's enable this after SPARK-14942: Reduce delay between batch 
construction and execution
    +  ignore("minimize delay between batch construction and execution") {
    +    val inputData = MemoryStream[Int]
    +    testStream(inputData.toDS())(
    +      StartStream(ProcessingTime("10 seconds"), new ManualClock),
    +      /* -- batch 0 ----------------------- */
    +      AddData(inputData, 1),
    +      AddData(inputData, 2),
    +      AddData(inputData, 3),
    +      AdvanceManualClock(10 * 1000), // 10 seconds
    +      /* -- batch 1 ----------------------- */
    +      CheckAnswer(1, 2, 3))
    +  }
    --- End diff --
    
    The above test takes advantage of the new `StartStream` and 
`AdvanceManualClock` action.
    It's testing against `SPARK-14942: Reduce delay between batch construction 
and execution` with a manually timed executor.


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

Reply via email to