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 2023/12/02 13:25:00 UTC
[jira] [Updated] (FLINK-33684) Improve the retry strategy in CollectResultFetcher
[ https://issues.apache.org/jira/browse/FLINK-33684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated FLINK-33684:
-----------------------------------
Labels: pull-request-available (was: )
> Improve the retry strategy in CollectResultFetcher
> --------------------------------------------------
>
> Key: FLINK-33684
> URL: https://issues.apache.org/jira/browse/FLINK-33684
> Project: Flink
> Issue Type: Sub-task
> Components: API / DataStream
> Reporter: xiangyu feng
> Priority: Major
> Labels: pull-request-available
>
> Currently CollectResultFetcher use a fixed retry interval.
> {code:java}
> private void sleepBeforeRetry() {
> if (retryMillis <= 0) {
> return;
> }
> try {
> // TODO a more proper retry strategy?
> Thread.sleep(retryMillis);
> } catch (InterruptedException e) {
> LOG.warn("Interrupted when sleeping before a retry", e);
> }
> } {code}
> This can be improved with a RetryStrategy.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)