HeartSaVioR commented on a change in pull request #26771: [SPARK-30143][SS] Add 
a timeout on stopping a streaming query
URL: https://github.com/apache/spark/pull/26771#discussion_r356365709
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/streaming/StreamingQuery.scala
 ##########
 @@ -142,10 +143,19 @@ trait StreamingQuery {
   def processAllAvailable(): Unit
 
   /**
-   * Stops the execution of this query if it is running. This method blocks 
until the threads
-   * performing execution has stopped.
+   * Stops the execution of this query if it is running. This awaits the 
termination of the query
+   * execution threads or a timeout is hit.
+   *
+   * By default stop will block indefinitely. You can make it timeout (ms) by 
setting the
 
 Review comment:
   You can configure timeout by configuration ...
   
   Given the configuration takes timeConf, unit may not be necessary here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to