spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arun Mahadevan (JIRA)" <>
Subject [jira] [Created] (SPARK-24136) should skip sleeping if record is available
Date Tue, 01 May 2018 16:47:00 GMT
Arun Mahadevan created SPARK-24136:

             Summary: should skip sleeping if record is available
                 Key: SPARK-24136
             Project: Spark
          Issue Type: Improvement
          Components: Structured Streaming
    Affects Versions: 2.4.0
            Reporter: Arun Mahadevan

Currently the code sleeps 10ms for each invocation of the next even if the record is available.
override def next(): Boolean = {
current = None
 while (current.isEmpty) {
current = endpoint.askSync[Option[Row]](
GetRecord(ContinuousMemoryStreamPartitionOffset(partition, currentOffset)))

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message