|
@@ -655,7 +655,7 @@ public abstract class RMStateStore extends AbstractService {
|
|
* RMAppStoredEvent will be sent on completion to notify the RMApp
|
|
* RMAppStoredEvent will be sent on completion to notify the RMApp
|
|
*/
|
|
*/
|
|
@SuppressWarnings("unchecked")
|
|
@SuppressWarnings("unchecked")
|
|
- public synchronized void storeNewApplication(RMApp app) {
|
|
|
|
|
|
+ public void storeNewApplication(RMApp app) {
|
|
ApplicationSubmissionContext context = app
|
|
ApplicationSubmissionContext context = app
|
|
.getApplicationSubmissionContext();
|
|
.getApplicationSubmissionContext();
|
|
assert context instanceof ApplicationSubmissionContextPBImpl;
|
|
assert context instanceof ApplicationSubmissionContextPBImpl;
|
|
@@ -666,7 +666,7 @@ public abstract class RMStateStore extends AbstractService {
|
|
}
|
|
}
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
@SuppressWarnings("unchecked")
|
|
- public synchronized void updateApplicationState(
|
|
|
|
|
|
+ public void updateApplicationState(
|
|
ApplicationStateData appState) {
|
|
ApplicationStateData appState) {
|
|
dispatcher.getEventHandler().handle(new RMStateUpdateAppEvent(appState));
|
|
dispatcher.getEventHandler().handle(new RMStateUpdateAppEvent(appState));
|
|
}
|
|
}
|
|
@@ -693,7 +693,7 @@ public abstract class RMStateStore extends AbstractService {
|
|
* This does not block the dispatcher threads
|
|
* This does not block the dispatcher threads
|
|
* RMAppAttemptStoredEvent will be sent on completion to notify the RMAppAttempt
|
|
* RMAppAttemptStoredEvent will be sent on completion to notify the RMAppAttempt
|
|
*/
|
|
*/
|
|
- public synchronized void storeNewApplicationAttempt(RMAppAttempt appAttempt) {
|
|
|
|
|
|
+ public void storeNewApplicationAttempt(RMAppAttempt appAttempt) {
|
|
Credentials credentials = getCredentialsFromAppAttempt(appAttempt);
|
|
Credentials credentials = getCredentialsFromAppAttempt(appAttempt);
|
|
|
|
|
|
AggregateAppResourceUsage resUsage =
|
|
AggregateAppResourceUsage resUsage =
|
|
@@ -711,7 +711,7 @@ public abstract class RMStateStore extends AbstractService {
|
|
}
|
|
}
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
@SuppressWarnings("unchecked")
|
|
- public synchronized void updateApplicationAttemptState(
|
|
|
|
|
|
+ public void updateApplicationAttemptState(
|
|
ApplicationAttemptStateData attemptState) {
|
|
ApplicationAttemptStateData attemptState) {
|
|
dispatcher.getEventHandler().handle(
|
|
dispatcher.getEventHandler().handle(
|
|
new RMStateUpdateAppAttemptEvent(attemptState));
|
|
new RMStateUpdateAppAttemptEvent(attemptState));
|
|
@@ -842,7 +842,7 @@ public abstract class RMStateStore extends AbstractService {
|
|
* There is no notification of completion for this operation.
|
|
* There is no notification of completion for this operation.
|
|
*/
|
|
*/
|
|
@SuppressWarnings("unchecked")
|
|
@SuppressWarnings("unchecked")
|
|
- public synchronized void removeApplication(RMApp app) {
|
|
|
|
|
|
+ public void removeApplication(RMApp app) {
|
|
ApplicationStateData appState =
|
|
ApplicationStateData appState =
|
|
ApplicationStateData.newInstance(
|
|
ApplicationStateData.newInstance(
|
|
app.getSubmitTime(), app.getStartTime(),
|
|
app.getSubmitTime(), app.getStartTime(),
|