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

    https://github.com/apache/spark/pull/13718#discussion_r67442124
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamExecution.scala
 ---
    @@ -190,6 +193,8 @@ class StreamExecution(
                 runBatch()
                 // We'll increase currentBatchId after we complete processing 
current batch's data
                 currentBatchId += 1
    +          } else {
    +            Thread.sleep(pollingDelayMs)
    --- End diff --
    
    Wasnt the intention that it will poll as fast as possible as long as there 
is data, and introduce delay only when there is a batch with no data?



---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to