YARN-6284. hasAlreadyRun should be final in ResourceManager.StandByTransitionRunnable
(Contributed by Laura Adams via Daniel Templeton) (cherry picked from commit 0a05c5c5989edeba2cffe16e80350245778cefce)
This commit is contained in:
parent
dabe96a72e
commit
d4bba011cc
@ -798,7 +798,7 @@ public void handleTransitionToStandByInNewThread() {
|
||||
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…
x
Reference in New Issue
Block a user