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

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

GitHub user kisimple opened a pull request:

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

    [FLINK-7789][DataStream API] Add handler for Async IO operator timeouts

    ## What is the purpose of the change
    
    *Currently Async IO operator does not provide a mechanism to handle 
timeouts. This PR fixs the problem by adding an enhanced `AsyncFunction`, named 
`TimeoutAwareAsyncFunction`.*
    
    
    ## Brief change log
    
      - *Add a new interface, `TimeoutAwareAsyncFunction`, which extends the 
`AsyncFunction`*
      - *Change `RichAsyncFunction` to implement `TimeoutAwareAsyncFunction` 
instead of `AsyncFunction`*
      - *`AsyncWaitOperator` will invoke `TimeoutAwareAsyncFunction#timeout` 
when `asyncInvoke` times out*
    
    
    ## Verifying this change
    
      - *Add tests to `AsyncWaitOperatorTest`*
    
    ## Does this pull request potentially affect one of the following parts:
    
      - Dependencies (does it add or upgrade a dependency): ( no )
      - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: ( yes )
      - The serializers: ( no )
      - The runtime per-record code paths (performance sensitive): ( yes )
      - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: ( no )
      - The S3 file system connector: ( no )
    
    ## Documentation
    
      - Does this pull request introduce a new feature? ( yes )
      - If yes, how is the feature documented? ( docs / JavaDocs )


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

    $ git pull https://github.com/kisimple/flink FLINK-7789

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

    https://github.com/apache/flink/pull/5983.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 #5983
    
----
commit 7cfb7ee8c7d29f7f4e004680ff1debcfcd897bff
Author: blueszheng <kisimple@...>
Date:   2018-05-10T06:41:34Z

    [FLINK-7789] Add handler for Async IO operator timeouts

----


> Add handler for Async IO operator timeouts 
> -------------------------------------------
>
>                 Key: FLINK-7789
>                 URL: https://issues.apache.org/jira/browse/FLINK-7789
>             Project: Flink
>          Issue Type: Improvement
>          Components: DataStream API
>            Reporter: Karthik Deivasigamani
>            Assignee: blues zheng
>            Priority: Major
>
> Currently Async IO operator does not provide a mechanism to handle timeouts. 
> When a request times out it an exception is thrown and job is restarted. It 
> would be good to pass a AsyncIOTimeoutHandler which can be implemented by the 
> user and passed in the constructor.
> Here is the discussion from apache flink users mailing list 
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/async-io-operator-timeouts-tt16068.html



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to