You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/05/27 10:17:12 UTC

[jira] [Commented] (FLINK-3317) Add timeout handler to CEP operator

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

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

GitHub user tillrohrmann opened a pull request:

    https://github.com/apache/flink/pull/2041

    [FLINK-3317] [cep] Introduce timeout handler to CEP operator

    This PR adds timeout handling functionality to the CEP library. Whenever an event pattern is discarded because it exceeds the window length, a user specified timeout function can be called. The timeout function receives the all matched events of the partial pattern as well as the timestamp when the timeout has occurred. This allows to create timeout events to which down stream operators can react.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tillrohrmann/flink cepTimeout

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/2041.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2041
    
----
commit d8ccf9bc734ceeaf7a3f897e3c3a5ebda427ccd0
Author: Till Rohrmann <tr...@apache.org>
Date:   2016-05-26T09:34:16Z

    [FLINK-3317] [cep] Introduce timeout handler to CEP operator
    
    Introduce timeout handling flag for the NFACompiler
    
    Expose timeout handling via Java API
    
    Update documentation of PatternStream and CEP
    
    Introduce timeout select function to CEP Scala API
    
    Add select and flatSelect with timeout support to CEP Scala API
    
    Add test cases for timeout handling
    
    Update documentation

commit 2d57d8016cedc997ca18b34406dd9a98e93de496
Author: Till Rohrmann <tr...@apache.org>
Date:   2016-05-27T10:13:09Z

    Fix CEP Scala API completeness test

----


> Add timeout handler to CEP operator
> -----------------------------------
>
>                 Key: FLINK-3317
>                 URL: https://issues.apache.org/jira/browse/FLINK-3317
>             Project: Flink
>          Issue Type: Improvement
>          Components: CEP
>    Affects Versions: 1.0.0
>            Reporter: Till Rohrmann
>            Assignee: Till Rohrmann
>            Priority: Minor
>
> Currently, event sequences which exceed the defined pattern timeout will be discarded. However, in some cases the user might be interested in getting to know when such a timeout occurred to return a default value for these event sequences.
> Thus, the pattern API should be extended to be able to define a timeout handler. Furthermore, the {{NFA}} has to be extended to also return the discarded event sequences. The {{CEPOperator}} would then call for every discarded event sequence the timeout handler.



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