We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a21e8d commit eddf9fdCopy full SHA for eddf9fd
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamExecution.scala
@@ -241,12 +241,12 @@ class StreamExecution(
241
// method. See SPARK-14131.
242
//
243
// Check to see what new data is available.
244
- val newData = microBatchThread.runUninterruptibly {
245
- uniqueSources.flatMap(s => s.getOffset.map(o => s -> o))
246
- }
247
- availableOffsets ++= newData
248
-
249
val hasNewData = awaitBatchLock.synchronized {
+ val newData = microBatchThread.runUninterruptibly {
+ uniqueSources.flatMap(s => s.getOffset.map(o => s -> o))
+ }
+ availableOffsets ++= newData
+
250
if (dataAvailable) {
251
true
252
} else {
0 commit comments