Stream Checkpoint Barriers and In-Flight State
Align an operator’s state with a consistent position in each input and compare waiting for barriers with recording in-flight data.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
A barrier separates records before and after a boundary
Suppose a two-input operator receives a checkpoint marker on one input first. In an aligned design, it can stop processing that input past the marker until the other marker arrives. Its snapshot then includes all pre-boundary processing and excludes later records according to the contract. Sources record which positions define the boundary and operators record the corresponding state.
Slow channels can delay alignment
Backpressure can make a marker arrive well after another one. An unaligned design can instead capture necessary channel data with operator state, trading waiting for checkpoint contents under its implementation’s rules. Recovery must restore those records or their equivalent before continuing. Consistent cuts explain why channel contents matter. Exactly-once effects add the external output obligations.[1][2]