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

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

GitHub user kisimple opened a pull request:

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

    [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 a `timeout` method to 
`AsyncFunction`
    
    ## Brief change log
    
      - Add a `timeout` method to `AsyncFunction` for both Java and Scala API
      - Update `AsyncWaitOperator` to invoke `AsyncFunction#timeout` for Java 
API
      - Update `AsyncDataStream` to invoke `AsyncFunction#timeout` for Scala API
    
    ## 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/6091.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 #6091
    
----
commit ccf1e55e09e94c3f7749b937594425a435f81184
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