qinjunjerry commented on a change in pull request #17597:
URL: https://github.com/apache/flink/pull/17597#discussion_r758339577
##########
File path: docs/content.zh/docs/dev/datastream/operators/asyncio.md
##########
@@ -174,6 +174,8 @@ val resultStream: DataStream[(String, String)] =
当异步 I/O 请求超时的时候,默认会抛出异常并重启作业。
如果你想处理超时,可以重写 `AsyncFunction#timeout` 方法。
+重写`AsyncFunction#timeout`时别忘了调用`ResultFuture.complete()` 或者
`ResultFuture.completeExceptionally()`
Review comment:
Added.
##########
File path: docs/content/docs/dev/datastream/operators/asyncio.md
##########
@@ -194,6 +194,8 @@ The following two parameters control the asynchronous
operations:
When an async I/O request times out, by default an exception is thrown and job
is restarted.
If you want to handle timeouts, you can override the `AsyncFunction#timeout`
method.
+Make sure you call `ResultFuture.complete()` or
`ResultFuture.completeExceptionally()` when overriding
Review comment:
Added
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]