YARN-4424. Fix deadlock in RMAppImpl. (Jian he via wangda)
(cherry picked from commit 7e4715186d31ac889fba26d453feedcebb11fc70) Conflicts: hadoop-yarn-project/CHANGES.txt (cherry picked from commit 7013f9d6cda88e72a839b1c55757615b55101beb) Conflicts: hadoop-yarn-project/CHANGES.txt
This commit is contained in:
parent
e7e0c4c0dd
commit
5b063d6b7f
@ -54,6 +54,8 @@ Release 2.6.3 - UNRELEASED
|
||||
YARN-4348. ZKRMStateStore.syncInternal shouldn't wait for sync completion for
|
||||
avoiding blocking ZK's event thread. (ozawa)
|
||||
|
||||
YARN-4424. Fix deadlock in RMAppImpl. (Jian he via wangda)
|
||||
|
||||
Release 2.6.2 - 2015-10-28
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -427,21 +427,15 @@ public ApplicationSubmissionContext getApplicationSubmissionContext() {
|
||||
|
||||
@Override
|
||||
public FinalApplicationStatus getFinalApplicationStatus() {
|
||||
this.readLock.lock();
|
||||
try {
|
||||
// finish state is obtained based on the state machine's current state
|
||||
// as a fall-back in case the application has not been unregistered
|
||||
// ( or if the app never unregistered itself )
|
||||
// when the report is requested
|
||||
if (currentAttempt != null
|
||||
&& currentAttempt.getFinalApplicationStatus() != null) {
|
||||
return currentAttempt.getFinalApplicationStatus();
|
||||
}
|
||||
return
|
||||
createFinalApplicationStatus(this.stateMachine.getCurrentState());
|
||||
} finally {
|
||||
this.readLock.unlock();
|
||||
// finish state is obtained based on the state machine's current state
|
||||
// as a fall-back in case the application has not been unregistered
|
||||
// ( or if the app never unregistered itself )
|
||||
// when the report is requested
|
||||
if (currentAttempt != null
|
||||
&& currentAttempt.getFinalApplicationStatus() != null) {
|
||||
return currentAttempt.getFinalApplicationStatus();
|
||||
}
|
||||
return createFinalApplicationStatus(this.stateMachine.getCurrentState());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user