Skip to content

Commit

Permalink
Add volatile to ApplicationMaster's reporterThread and allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Feb 27, 2015
1 parent 8cd1692 commit 17d9386
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ private[spark] class ApplicationMaster(
@volatile private var finalMsg: String = ""
@volatile private var userClassThread: Thread = _

private var reporterThread: Thread = _
private var allocator: YarnAllocator = _
@volatile private var reporterThread: Thread = _
@volatile private var allocator: YarnAllocator = _

// Fields used in client mode.
private var actorSystem: ActorSystem = null
Expand Down

0 comments on commit 17d9386

Please sign in to comment.