[ https://issues.apache.org/jira/browse/FLINK-4715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15585115#comment-15585115 ]
ASF GitHub Bot commented on FLINK-4715: --------------------------------------- Github user uce commented on a diff in the pull request: https://github.com/apache/flink/pull/2652#discussion_r83824704 --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java --- @@ -1251,33 +1289,113 @@ public void run() { catch (InterruptedException e) { // we can ignore this } + } + catch (Throwable t) { + LOG.error("Error in the task canceler", t); + } - // it is possible that the user code does not react immediately. for that - // reason, we spawn a separate thread that repeatedly interrupts the user code until - // it exits - while (executer.isAlive()) { - // build the stack trace of where the thread is stuck, for the log - StringBuilder bld = new StringBuilder(); - StackTraceElement[] stack = executer.getStackTrace(); - for (StackTraceElement e : stack) { - bld.append(e).append('\n'); - } + System.out.println("Canceler done"); --- End diff -- Yes, removed > TaskManager should commit suicide after cancellation failure > ------------------------------------------------------------ > > Key: FLINK-4715 > URL: https://issues.apache.org/jira/browse/FLINK-4715 > Project: Flink > Issue Type: Improvement > Components: TaskManager > Affects Versions: 1.2.0 > Reporter: Till Rohrmann > Assignee: Ufuk Celebi > Fix For: 1.2.0 > > > In case of a failed cancellation, e.g. the task cannot be cancelled after a > given time, the {{TaskManager}} should kill itself. That way we guarantee > that there is no resource leak. > This behaviour acts as a safety-net against faulty user code. -- This message was sent by Atlassian JIRA (v6.3.4#6332)