YARN-6284. hasAlreadyRun should be final in ResourceManager.StandByTransitionRunnable
(Contributed by Laura Adams via Daniel Templeton)
This commit is contained in:
parent
c01d15ab27
commit
0a05c5c598
|
@ -846,7 +846,7 @@ public class ResourceManager extends CompositeService implements Recoverable {
|
|||
private class StandByTransitionRunnable implements Runnable {
|
||||
// The atomic variable to make sure multiple threads with the same runnable
|
||||
// run only once.
|
||||
private AtomicBoolean hasAlreadyRun = new AtomicBoolean(false);
|
||||
private final AtomicBoolean hasAlreadyRun = new AtomicBoolean(false);
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
Loading…
Reference in New Issue