[
https://issues.apache.org/jira/browse/FLINK-32895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17797017#comment-17797017
]
Rui Fan commented on FLINK-32895:
---------------------------------
Merged to master(1.19) via :
1c7b10873be475b73d78a083eda6be71fbb13c2b
80e71a47662c70e5cc0d96bfa3962bd37a6d020d
3d4d396e68e6cf7f49b7cc8d94b2c9516ffc2b96
> Introduce the max attempts for Exponential Delay Restart Strategy
> -----------------------------------------------------------------
>
> Key: FLINK-32895
> URL: https://issues.apache.org/jira/browse/FLINK-32895
> Project: Flink
> Issue Type: Sub-task
> Components: Runtime / Coordination
> Reporter: Rui Fan
> Assignee: Rui Fan
> Priority: Major
> Labels: pull-request-available
>
> Currently, Flink has 3 restart strategies, they are: fixed-delay,
> failure-rate and exponential-delay.
> The exponential-delay is suitable if a job continues to fail for a period of
> time. The fixed-delay and failure-rate has the max attempts mechanism, that
> means, the job won't restart and go to fail after the attempt exceeds the
> threshold of max attempts.
> The max attempts mechanism is reasonable, flink should not or need to
> infinitely restart the job if the job keeps failing. However, the
> exponential-delay doesn't have the max attempts mechanism.
> I propose introducing the
> `restart-strategy.exponential-delay.max-attempts-before-reset` to support the
> max attempts mechanism for exponential-delay. It means flink won't restart
> job if the number of job failures before reset exceeds
> max-attempts-before-reset when is exponential-delay is enabled.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)