-
- Downloads
[SPARK-14416][CORE] Add thread-safe comments for CoarseGrainedSchedulerBackend's fields
## What changes were proposed in this pull request? While I was reviewing #12078, I found most of CoarseGrainedSchedulerBackend's mutable fields doesn't have any comments about the thread-safe assumptions and it's hard for people to figure out which part of codes should be protected by the lock. This PR just added comments/annotations for them and also added strict access modifiers for some fields. ## How was this patch tested? Existing unit tests. Author: Shixiong Zhu <shixiong@databricks.com> Closes #12188 from zsxwing/comments.
Showing
- core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala 24 additions, 13 deletions...ark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala
- yarn/src/main/scala/org/apache/spark/scheduler/cluster/YarnSchedulerBackend.scala 6 additions, 3 deletions...apache/spark/scheduler/cluster/YarnSchedulerBackend.scala
Please register or sign in to comment