|
@@ -749,7 +749,7 @@ public class CapacityScheduler extends
|
|
if (queue == null) {
|
|
if (queue == null) {
|
|
//During a restart, this indicates a queue was removed, which is
|
|
//During a restart, this indicates a queue was removed, which is
|
|
//not presently supported
|
|
//not presently supported
|
|
- if (!YarnConfiguration.shouldRMFailFast(getConfig())) {
|
|
|
|
|
|
+ if (!getConfiguration().shouldAppFailFast(getConfig())) {
|
|
this.rmContext.getDispatcher().getEventHandler().handle(
|
|
this.rmContext.getDispatcher().getEventHandler().handle(
|
|
new RMAppEvent(applicationId, RMAppEventType.KILL,
|
|
new RMAppEvent(applicationId, RMAppEventType.KILL,
|
|
"Application killed on recovery as it"
|
|
"Application killed on recovery as it"
|
|
@@ -770,7 +770,7 @@ public class CapacityScheduler extends
|
|
if (!(queue instanceof LeafQueue)) {
|
|
if (!(queue instanceof LeafQueue)) {
|
|
// During RM restart, this means leaf queue was converted to a parent
|
|
// During RM restart, this means leaf queue was converted to a parent
|
|
// queue, which is not supported for running apps.
|
|
// queue, which is not supported for running apps.
|
|
- if (!YarnConfiguration.shouldRMFailFast(getConfig())) {
|
|
|
|
|
|
+ if (!getConfiguration().shouldAppFailFast(getConfig())) {
|
|
this.rmContext.getDispatcher().getEventHandler().handle(
|
|
this.rmContext.getDispatcher().getEventHandler().handle(
|
|
new RMAppEvent(applicationId, RMAppEventType.KILL,
|
|
new RMAppEvent(applicationId, RMAppEventType.KILL,
|
|
"Application killed on recovery as it was "
|
|
"Application killed on recovery as it was "
|
|
@@ -829,7 +829,7 @@ public class CapacityScheduler extends
|
|
return autoCreateLeafQueue(placementContext);
|
|
return autoCreateLeafQueue(placementContext);
|
|
} catch (YarnException | IOException e) {
|
|
} catch (YarnException | IOException e) {
|
|
if (isRecovery) {
|
|
if (isRecovery) {
|
|
- if (!YarnConfiguration.shouldRMFailFast(getConfig())) {
|
|
|
|
|
|
+ if (!getConfiguration().shouldAppFailFast(getConfig())) {
|
|
LOG.error("Could not auto-create leaf queue " + queueName +
|
|
LOG.error("Could not auto-create leaf queue " + queueName +
|
|
" due to : ", e);
|
|
" due to : ", e);
|
|
this.rmContext.getDispatcher().getEventHandler().handle(
|
|
this.rmContext.getDispatcher().getEventHandler().handle(
|