GitHub user zsxwing opened a pull request:

    https://github.com/apache/spark/pull/12261

    [SPARK-14494][SQL]Fix the race conditions in MemoryStream and MemorySink

    ## What changes were proposed in this pull request?
    
    Make sure accessing mutable variables in MemoryStream and MemorySink are 
protected by `synchronized`.
    This is probably why MemorySinkSuite failed here: 
https://amplab.cs.berkeley.edu/jenkins/job/spark-master-test-sbt-hadoop-2.2/650/testReport/junit/org.apache.spark.sql.streaming/MemorySinkSuite/registering_as_a_table/
    
    ## How was this patch tested?
    Existing unit tests.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zsxwing/spark memory-race-condition

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12261.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12261
    
----
commit 9d99538ad58e4a282ee0572f17e142ab0b889fef
Author: Shixiong Zhu <[email protected]>
Date:   2016-04-08T17:30:52Z

    Fix the race conditions in MemoryStream and MemorySink

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to