Skip to content
Snippets Groups Projects
Commit 7f371884 authored by Kousuke Saruta's avatar Kousuke Saruta Committed by Thomas Graves
Browse files

[SPARK-4282][YARN] Stopping flag in YarnClientSchedulerBackend should 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 <sarutak@oss.nttdata.co.jp>

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

58fdcc9 [Kousuke Saruta] Marked stoppig flag as volatile
parent f820b563
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment