flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Till Rohrmann (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-6435) AsyncWaitOperator does not handle exceptions properly
Date Wed, 03 May 2017 08:21:04 GMT
Till Rohrmann created FLINK-6435:

             Summary: AsyncWaitOperator does not handle exceptions properly
                 Key: FLINK-6435
                 URL: https://issues.apache.org/jira/browse/FLINK-6435
             Project: Flink
          Issue Type: Bug
          Components: Distributed Coordination
    Affects Versions: 1.3.0
            Reporter: Till Rohrmann
            Assignee: Till Rohrmann

A user reported that the {{AsyncWaitOperator}} does not handle exceptions properly. The following
code snipped does not make the job fail.

public void test() throws Exception {
    StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
    DataStream<Integer> withTimestamps = env.fromCollection(Arrays.asList(1,2,3,4,5));

        (AsyncFunction<Integer, String>) (input, collector) -> {
            if (input == 3){
                collector.collect(new RuntimeException("Test"));
        }, 10, TimeUnit.MILLISECONDS)


This message was sent by Atlassian JIRA

View raw message