Skip to content

Commit

Permalink
IGNITE-6545: Failure during Ignite Service.cancel() can break normal …
Browse files Browse the repository at this point in the history
…shutdown process. This closes apache#2807.
  • Loading branch information
AMashenkov committed Oct 11, 2017
1 parent 0f3546a commit 8ffa109
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,16 @@ public void updateUtilityCache() {
Service svc = ctx.service();

if (svc != null)
svc.cancel(ctx);
try {
svc.cancel(ctx);
}
catch (Throwable e) {
log.error("Failed to cancel service (ignoring) [name=" + ctx.name() +
", execId=" + ctx.executionId() + ']', e);

if (e instanceof Error)
throw e;
}

ctx.executor().shutdownNow();
}
Expand Down

0 comments on commit 8ffa109

Please sign in to comment.