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

----


---

Reply via email to