You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ar...@apache.org on 2021/10/28 12:02:48 UTC
[flink] branch release-1.13 updated: [FLINK-24310][doc]Use >=
instead of == to cover the downscaling scenario
This is an automated email from the ASF dual-hosted git repository.
arvid pushed a commit to branch release-1.13
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.13 by this push:
new fec8431 [FLINK-24310][doc]Use >= instead of == to cover the downscaling scenario
fec8431 is described below
commit fec8431385da4a4d291ab12a08cd553f8fa88a2c
Author: Jun Qin <11...@users.noreply.github.com>
AuthorDate: Thu Sep 16 11:39:45 2021 +0200
[FLINK-24310][doc]Use >= instead of == to cover the downscaling scenario
---
docs/content.zh/docs/dev/datastream/fault-tolerance/state.md | 4 ++--
docs/content/docs/dev/datastream/fault-tolerance/state.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/content.zh/docs/dev/datastream/fault-tolerance/state.md b/docs/content.zh/docs/dev/datastream/fault-tolerance/state.md
index 13a8569..5871977 100644
--- a/docs/content.zh/docs/dev/datastream/fault-tolerance/state.md
+++ b/docs/content.zh/docs/dev/datastream/fault-tolerance/state.md
@@ -648,7 +648,7 @@ public class BufferingSink
@Override
public void invoke(Tuple2<String, Integer> value, Context contex) throws Exception {
bufferedElements.add(value);
- if (bufferedElements.size() == threshold) {
+ if (bufferedElements.size() >= threshold) {
for (Tuple2<String, Integer> element: bufferedElements) {
// send it to the sink
}
@@ -695,7 +695,7 @@ class BufferingSink(threshold: Int = 0)
override def invoke(value: (String, Int), context: Context): Unit = {
bufferedElements += value
- if (bufferedElements.size == threshold) {
+ if (bufferedElements.size >= threshold) {
for (element <- bufferedElements) {
// send it to the sink
}
diff --git a/docs/content/docs/dev/datastream/fault-tolerance/state.md b/docs/content/docs/dev/datastream/fault-tolerance/state.md
index 1f9b42d..8501ff2 100644
--- a/docs/content/docs/dev/datastream/fault-tolerance/state.md
+++ b/docs/content/docs/dev/datastream/fault-tolerance/state.md
@@ -725,7 +725,7 @@ public class BufferingSink
@Override
public void invoke(Tuple2<String, Integer> value, Context contex) throws Exception {
bufferedElements.add(value);
- if (bufferedElements.size() == threshold) {
+ if (bufferedElements.size() >= threshold) {
for (Tuple2<String, Integer> element: bufferedElements) {
// send it to the sink
}
@@ -772,7 +772,7 @@ class BufferingSink(threshold: Int = 0)
override def invoke(value: (String, Int), context: Context): Unit = {
bufferedElements += value
- if (bufferedElements.size == threshold) {
+ if (bufferedElements.size >= threshold) {
for (element <- bufferedElements) {
// send it to the sink
}