You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tr...@apache.org on 2021/03/31 10:16:46 UTC
[flink] 01/02: [FLINK-22051][docs] Explain when to use
stop-with-savepoint --drain
This is an automated email from the ASF dual-hosted git repository.
trohrmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 761ecfc193f89b1c137712c2303ea3269880fa8b
Author: Till Rohrmann <tr...@apache.org>
AuthorDate: Tue Mar 30 17:13:20 2021 +0200
[FLINK-22051][docs] Explain when to use stop-with-savepoint --drain
This commit extends the existing documentation by stating when to use stop-with-savepoint
--drain and when not.
This closes #15435.
---
docs/content.zh/docs/deployment/cli.md | 5 +++++
docs/content/docs/deployment/cli.md | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/docs/content.zh/docs/deployment/cli.md b/docs/content.zh/docs/deployment/cli.md
index 354b0a6..30d5618 100644
--- a/docs/content.zh/docs/deployment/cli.md
+++ b/docs/content.zh/docs/deployment/cli.md
@@ -169,6 +169,11 @@ barrier. This will make all registered event-time timers fire, thus flushing out
is waiting for a specific watermark, e.g. windows. The job will keep running until all sources properly
shut down. This allows the job to finish processing all in-flight data.
+{{< hint danger >}}
+Use the `--drain` flag if you want to terminate the job permanently.
+If you want to resume the job at a later point in time, then do not drain the pipeline because it could lead to incorrect results when the job is resumed.
+{{< /hint >}}
+
#### Cancelling a Job Ungracefully
Cancelling a job can be achieved through the `cancel` action:
diff --git a/docs/content/docs/deployment/cli.md b/docs/content/docs/deployment/cli.md
index efbcba8..fe8017f 100644
--- a/docs/content/docs/deployment/cli.md
+++ b/docs/content/docs/deployment/cli.md
@@ -167,6 +167,11 @@ barrier. This will make all registered event-time timers fire, thus flushing out
is waiting for a specific watermark, e.g. windows. The job will keep running until all sources properly
shut down. This allows the job to finish processing all in-flight data.
+{{< hint danger >}}
+Use the `--drain` flag if you want to terminate the job permanently.
+If you want to resume the job at a later point in time, then do not drain the pipeline because it could lead to incorrect results when the job is resumed.
+{{< /hint >}}
+
#### Cancelling a Job Ungracefully
Cancelling a job can be achieved through the `cancel` action: