mukulmurthy opened a new pull request #23513: [SPARK-26586][SS] Fix race 
condition that causes streams to run with unexpected confs
URL: https://github.com/apache/spark/pull/23513
 
 
   ## What changes were proposed in this pull request?
   
   Fix race condition where streams can have unexpected conf. 
   
   New streaming queries should run with isolated SparkSessions so that they 
aren't affected by conf updates after they are started. In StreamExecution, the 
parent SparkSession is cloned and used to run each batch, but this cloning 
happens in a separate thread and may happen after DataStreamWriter.start() 
returns. If a stream is started and a conf key is set immediately after, the 
stream is likely to have the new value.
   
   ## How was this patch tested?
   
   New unit test that fails prior to the production change and passes with it.
   
   Please review http://spark.apache.org/contributing.html before opening a 
pull request.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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