Skip to content

Commit

Permalink
[hotfix][docs][checkpointing] Fix and sync example code
Browse files Browse the repository at this point in the history
  • Loading branch information
atealxt committed Dec 28, 2020
1 parent 441fc5d commit 8fc6eae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/dev/stream/state/checkpointing.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ env.getCheckpointConfig().setMaxConcurrentCheckpoints(1);
env.getCheckpointConfig().enableExternalizedCheckpoints(ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION);

// enables the experimental unaligned checkpoints
env.getCheckpointConfig.enableUnalignedCheckpoints();
env.getCheckpointConfig().enableUnalignedCheckpoints();
{% endhighlight %}
</div>
<div data-lang="scala" markdown="1">
Expand Down
5 changes: 5 additions & 0 deletions docs/dev/stream/state/checkpointing.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ env.getCheckpointConfig().setMaxConcurrentCheckpoints(1);
// 开启在 job 中止后仍然保留的 externalized checkpoints
env.getCheckpointConfig().enableExternalizedCheckpoints(ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION);

// 开启实验性的 unaligned checkpoints
env.getCheckpointConfig().enableUnalignedCheckpoints();
{% endhighlight %}
</div>
<div data-lang="scala" markdown="1">
Expand All @@ -120,6 +122,9 @@ env.getCheckpointConfig.setFailTasksOnCheckpointingErrors(false)

// 同一时间只允许一个 checkpoint 进行
env.getCheckpointConfig.setMaxConcurrentCheckpoints(1)

// 开启实验性的 unaligned checkpoints
env.getCheckpointConfig.enableUnalignedCheckpoints()
{% endhighlight %}
</div>
<div data-lang="python" markdown="1">
Expand Down

0 comments on commit 8fc6eae

Please sign in to comment.