1996fanrui commented on code in PR #23847:
URL: https://github.com/apache/flink/pull/23847#discussion_r1412797465
##########
docs/content.zh/docs/ops/state/task_failure_recovery.md:
##########
@@ -49,20 +49,18 @@ Flink 作业如果没有定义重启策略,则会遵循集群启动时加载
{{< generated/restart_strategy_configuration >}}
除了定义默认的重启策略以外,还可以为每个 Flink 作业单独定义重启策略。
-这个重启策略通过在程序中的 `StreamExecutionEnvironment` 对象上调用 `setRestartStrategy` 方法来设置。
-当然,对于 `StreamExecutionEnvironment` 也同样适用。
下例展示了如何给我们的作业设置固定延时重启策略。
如果发生故障,系统会重启作业 3 次,每两次连续的重启尝试之间等待 10 秒钟。
{{< tabs "2b011473-9a34-4e7b-943b-be4a9071fe3c" >}}
{{< tab "Java" >}}
Review Comment:
Hey @JunRuiLee , I'm thinking should we still have 3 parts(Java, Scala,
Python) here?
We recommend users use the options instead of api for all languages, it
includes Scala and Python. I think only keeping options is enough here even if
we didn't depreate the api for scala and python.
WDYT?
Note: if you agree it, the comments should take effect for all doc related
to this FLIP.
##########
docs/content.zh/docs/ops/state/task_failure_recovery.md:
##########
@@ -49,20 +49,18 @@ Flink 作业如果没有定义重启策略,则会遵循集群启动时加载
{{< generated/restart_strategy_configuration >}}
除了定义默认的重启策略以外,还可以为每个 Flink 作业单独定义重启策略。
-这个重启策略通过在程序中的 `StreamExecutionEnvironment` 对象上调用 `setRestartStrategy` 方法来设置。
-当然,对于 `StreamExecutionEnvironment` 也同样适用。
下例展示了如何给我们的作业设置固定延时重启策略。
如果发生故障,系统会重启作业 3 次,每两次连续的重启尝试之间等待 10 秒钟。
{{< tabs "2b011473-9a34-4e7b-943b-be4a9071fe3c" >}}
{{< tab "Java" >}}
Review Comment:
Hey @JunRuiLee , I'm thinking should we still have 3 parts(Java, Scala,
Python) here?
We recommend users use the options instead of api for all languages, it
includes Scala and Python. I think only keeping options is enough here even if
we didn't depreate the api for scala and python.
WDYT?
Note: if you agree it, this comment should take effect for all doc related
to this FLIP.
--
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]