@@ -975,8 +975,14 @@ void markFailed(
975
975
Map <String , Accumulator <?, ?>> userAccumulators ,
976
976
IOMetrics metrics ,
977
977
boolean releasePartitions ,
978
- boolean fromSchedulerNg ) {
979
- processFail (t , cancelTask , userAccumulators , metrics , releasePartitions , fromSchedulerNg );
978
+ boolean fromWithinExecutionGraph ) {
979
+ processFail (
980
+ t ,
981
+ cancelTask ,
982
+ userAccumulators ,
983
+ metrics ,
984
+ releasePartitions ,
985
+ fromWithinExecutionGraph );
980
986
}
981
987
982
988
@ VisibleForTesting
@@ -1148,16 +1154,16 @@ private void processFail(Throwable t, boolean cancelTask) {
1148
1154
* @param metrics IO metrics
1149
1155
* @param releasePartitions Indicating whether to release result partitions produced by this
1150
1156
* execution. False if the task is FAILED in TaskManager, otherwise true.
1151
- * @param fromSchedulerNg Indicating whether the failure is from the SchedulerNg. It should be
1152
- * false if it is from within the ExecutionGraph.
1157
+ * @param fromWithinExecutionGraph Indicating whether the failure is from within the
1158
+ * ExecutionGraph. It should be true if it is from within the ExecutionGraph.
1153
1159
*/
1154
1160
private void processFail (
1155
1161
Throwable t ,
1156
1162
boolean cancelTask ,
1157
1163
Map <String , Accumulator <?, ?>> userAccumulators ,
1158
1164
IOMetrics metrics ,
1159
1165
boolean releasePartitions ,
1160
- boolean fromSchedulerNg ) {
1166
+ boolean fromWithinExecutionGraph ) {
1161
1167
1162
1168
assertRunningInJobMasterMainThread ();
1163
1169
@@ -1185,7 +1191,7 @@ private void processFail(
1185
1191
return ;
1186
1192
}
1187
1193
1188
- if (!fromSchedulerNg ) {
1194
+ if (!fromWithinExecutionGraph ) {
1189
1195
vertex .getExecutionGraphAccessor ()
1190
1196
.notifySchedulerNgAboutInternalTaskFailure (
1191
1197
attemptId , t , cancelTask , releasePartitions );
0 commit comments