Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
some feedback
  • Loading branch information
marmbrus committed Jan 6, 2016
commit cd575db5bb4ab1e954f80a3b0d044ab492394443
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ class StreamExecution(
microBatchThread.setDaemon(true)
microBatchThread.start()

var lastExecution: QueryExecution = null
@volatile
private[sql] var lastExecution: QueryExecution = null

/**
* Checks to see if any new data is present in any of the sources. When new data is available,
Expand Down Expand Up @@ -128,7 +129,7 @@ class StreamExecution(
*/
def stop(): Unit = {
shouldRun = false
while (microBatchThread.isAlive) { Thread.sleep(100) }
if (microBatchThread.isAlive) { microBatchThread.join() }
}

/**
Expand Down