PatrickRen commented on a change in pull request #11151:
[FLINK-16128][docs]Translate "Google Cloud PubSub" page into Chinese
URL: https://github.com/apache/flink/pull/11151#discussion_r383105282
##########
File path: docs/dev/connectors/pubsub.zh.md
##########
@@ -143,22 +135,22 @@ env.addSource(pubsubSource)
</div>
</div>
-### Atleast once guarantee
+### 精确一次语义保证
#### SourceFunction
-There are several reasons why a message might be send multiple times, such as
failure scenarios on Google PubSub's side.
+有很多原因导致会一个信息会被多次发出,例如 Google PubSub 的故障。
-Another reason is when the acknowledgement deadline has passed. This is the
time between receiving the message and between acknowledging the message. The
PubSubSource will only acknowledge a message on successful checkpoints to
guarantee Atleast-Once. This does mean if the time between successful
checkpoints is larger than the acknowledgment deadline of your subscription
messages will most likely be processed multiple times.
+另一个可能的原因是超过了确认的截止时间。这是收到信息的间隔和信息确认的间隔。PubSubSource
只有在信息被成功快照之后才会确认以保证至少一次的语义。这意味着,如果你的快照间隔大于信息确认的截止时间,那么你订阅的信息很有可能会被多次处理。
Review comment:
I doubt that the second "between" is added by mistake in the original
English document:
> This is the time between receiving the message and <s>between</s>
acknowledging the message.
If so, the translation would be:
另一个可能的原因是超过了确认的截止时间,即收到与确认信息之间的时间间隔。
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services