GitHub user tdas opened a pull request: https://github.com/apache/spark/pull/20655
[SPARK-23484][SS] Fix possible race condition in KafkaContinuousReader ## What changes were proposed in this pull request? var `KafkaContinuousReader.knownPartitions` should be threadsafe as it is accessed from multiple threads - the query thread at the time of reader factory creation, and the epoch tracking thread at the time of `needsReconfiguration`. ## How was this patch tested? Existing tests. You can merge this pull request into a Git repository by running: $ git pull https://github.com/tdas/spark SPARK-23484 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/20655.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 #20655 ---- commit 30412bff951bdc332c1ee54fedc97b6835f8be47 Author: Tathagata Das <tathagata.das1565@...> Date: 2018-02-21T22:10:24Z Added volatile ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org