You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by al...@apache.org on 2021/02/04 20:05:54 UTC
[beam] branch master updated: Remove an unused reference to
staleTimerSet and reword the commentary. (#13268)
This is an automated email from the ASF dual-hosted git repository.
altay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 0cfa80f Remove an unused reference to staleTimerSet and reword the commentary. (#13268)
0cfa80f is described below
commit 0cfa80fd919d141a2061393ec5c12521c7d7af0b
Author: tvalentyn <tv...@users.noreply.github.com>
AuthorDate: Thu Feb 4 12:05:11 2021 -0800
Remove an unused reference to staleTimerSet and reword the commentary. (#13268)
---
website/www/site/content/en/blog/timely-processing.md | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/website/www/site/content/en/blog/timely-processing.md b/website/www/site/content/en/blog/timely-processing.md
index 440913f..13d26ba 100644
--- a/website/www/site/content/en/blog/timely-processing.md
+++ b/website/www/site/content/en/blog/timely-processing.md
@@ -429,9 +429,9 @@ is intuitively simple: you want to wait a certain amount of time and then
receive a call back.
To put the finishing touches on our example, we will set a processing time
-timer as soon as any data is buffered. We track whether or not the timer has
-been set so we don't continually reset it. When an element arrives, if the
-timer has not been set, then we set it for the current moment plus
+timer as soon as any data is buffered. Note that we set the timer only when
+the current buffer is empty, so that we don't continually reset the timer.
+When the first element arrives, we set the timer for the current moment plus
`MAX_BUFFER_DURATION`. After the allotted processing time has passed, a
callback will fire and enrich and emit any buffered elements.
@@ -453,7 +453,6 @@ new DoFn<Event, EnrichedEvent>() {
@TimerId("stale") Timer staleTimer,
@TimerId("expiry") Timer expiryTimer) {
- boolean staleTimerSet = firstNonNull(staleSetState.read(), false);
if (firstNonNull(countState.read(), 0) == 0) {
staleTimer.offset(MAX_BUFFER_DURATION).setRelative();
}
@@ -549,7 +548,7 @@ similar features before outside of Beam.
### Event Time Windowing "Just Works"
-One of the raisons d'etre for Beam is correct processing of out-of-order event
+One of the raisons d'ĂȘtre for Beam is correct processing of out-of-order event
data, which is almost all event data. Beam's solution to out-of-order data is
event time windowing, where windows in event time yield correct results no
matter what windowing a user chooses or what order the events come in.