|
@@ -727,7 +727,7 @@ public class CapacityScheduler extends
|
|
|
if (queue == null) {
|
|
|
//During a restart, this indicates a queue was removed, which is
|
|
|
//not presently supported
|
|
|
- if (!YarnConfiguration.shouldRMFailFast(getConfig())) {
|
|
|
+ if (!getConfiguration().shouldAppFailFast(getConfig())) {
|
|
|
this.rmContext.getDispatcher().getEventHandler().handle(
|
|
|
new RMAppEvent(applicationId, RMAppEventType.KILL,
|
|
|
"Application killed on recovery as it was submitted to queue "
|
|
@@ -747,7 +747,7 @@ public class CapacityScheduler extends
|
|
|
if (!(queue instanceof LeafQueue)) {
|
|
|
// During RM restart, this means leaf queue was converted to a parent
|
|
|
// queue, which is not supported for running apps.
|
|
|
- if (!YarnConfiguration.shouldRMFailFast(getConfig())) {
|
|
|
+ if (!getConfiguration().shouldAppFailFast(getConfig())) {
|
|
|
this.rmContext.getDispatcher().getEventHandler().handle(
|
|
|
new RMAppEvent(applicationId, RMAppEventType.KILL,
|
|
|
"Application killed on recovery as it was submitted to queue "
|