|
@@ -150,7 +150,7 @@ public class SchedulerApplicationAttempt {
|
|
return appSchedulingInfo.getPriorities();
|
|
return appSchedulingInfo.getPriorities();
|
|
}
|
|
}
|
|
|
|
|
|
- public ResourceRequest getResourceRequest(Priority priority, String resourceName) {
|
|
|
|
|
|
+ public synchronized ResourceRequest getResourceRequest(Priority priority, String resourceName) {
|
|
return this.appSchedulingInfo.getResourceRequest(priority, resourceName);
|
|
return this.appSchedulingInfo.getResourceRequest(priority, resourceName);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -158,7 +158,7 @@ public class SchedulerApplicationAttempt {
|
|
return getResourceRequest(priority, ResourceRequest.ANY).getNumContainers();
|
|
return getResourceRequest(priority, ResourceRequest.ANY).getNumContainers();
|
|
}
|
|
}
|
|
|
|
|
|
- public Resource getResource(Priority priority) {
|
|
|
|
|
|
+ public synchronized Resource getResource(Priority priority) {
|
|
return appSchedulingInfo.getResource(priority);
|
|
return appSchedulingInfo.getResource(priority);
|
|
}
|
|
}
|
|
|
|
|