Skip to content

Commit

Permalink
[SPARK-4282][YARN] Stopping flag in YarnClientSchedulerBackend should…
Browse files Browse the repository at this point in the history
… be volatile

In YarnClientSchedulerBackend, a variable "stopping" is used as a flag and it's accessed by some threads so it should be volatile.

Author: Kousuke Saruta <[email protected]>

Closes #3143 from sarutak/stopping-flag-volatile and squashes the following commits:

58fdcc9 [Kousuke Saruta] Marked stoppig flag as volatile
  • Loading branch information
sarutak authored and tgravescs committed Nov 11, 2014
1 parent f820b56 commit 7f37188
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private[spark] class YarnClientSchedulerBackend(

private var client: Client = null
private var appId: ApplicationId = null
private var stopping: Boolean = false
@volatile private var stopping: Boolean = false

/**
* Create a Yarn client to submit an application to the ResourceManager.
Expand Down

0 comments on commit 7f37188

Please sign in to comment.