spark-instrumented-optimizer/core/src/main
Josh Rosen c51c772594 [SPARK-18640] Add synchronization to TaskScheduler.runningTasksByExecutors
## What changes were proposed in this pull request?

The method `TaskSchedulerImpl.runningTasksByExecutors()` accesses the mutable `executorIdToRunningTaskIds` map without proper synchronization. In addition, as markhamstra pointed out in #15986, the signature's use of parentheses is a little odd given that this is a pure getter method.

This patch fixes both issues.

## How was this patch tested?

Covered by existing tests.

Author: Josh Rosen <joshrosen@databricks.com>

Closes #16073 from JoshRosen/runningTasksByExecutors-thread-safety.
2016-11-30 14:47:41 -05:00
..
java/org/apache/spark [SPARK-18557] Downgrade confusing memory leak warning message 2016-11-23 04:22:26 -08:00
resources/org/apache/spark [SPARK-18396][HISTORYSERVER] Duration" column makes search result confused, maybe we should make it unsearchable 2016-11-14 12:22:36 +01:00
scala/org/apache/spark [SPARK-18640] Add synchronization to TaskScheduler.runningTasksByExecutors 2016-11-30 14:47:41 -05:00