flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-2523) Make task canceling interrupt interval configurable
Date Mon, 25 Jan 2016 13:42:39 GMT

    [ https://issues.apache.org/jira/browse/FLINK-2523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15115201#comment-15115201
] 

ASF GitHub Bot commented on FLINK-2523:
---------------------------------------

Github user rmetzger commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1546#discussion_r50694061
  
    --- Diff: flink-examples/flink-examples-batch/src/main/java/org/apache/flink/examples/java/wordcount/WordCount.java
---
    @@ -60,6 +60,7 @@ public static void main(String[] args) throws Exception {
     		
     		// set up the execution environment
     		final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
    +		env.getConfig().setTaskCancellationDelay(40000);
    --- End diff --
    
    I guess that's an accidental commit?


> Make task canceling interrupt interval configurable
> ---------------------------------------------------
>
>                 Key: FLINK-2523
>                 URL: https://issues.apache.org/jira/browse/FLINK-2523
>             Project: Flink
>          Issue Type: Improvement
>          Components: TaskManager
>    Affects Versions: 0.10.0
>            Reporter: Stephan Ewen
>            Assignee: Kostas
>             Fix For: 1.0.0
>
>
> When a task is canceled, the cancellation calls periodically "interrupt()" on the task
thread, if the task thread does not cancel with a certain time.
> Currently, this value is hard coded to 10 seconds. We should make that time configurable.
> Until then, I would like to increase the value to 30 seconds, as many tasks (here I am
observing it for Kafka consumers) can take longer then 10 seconds for proper cleanup.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message