mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-12-04 00:15:29 +00:00
Two wording fixes from review; neither changes the design. "Keep the existing check" was ambiguous next to a requirement to restack onto #9777's piece semantics: a reader could take it as keeping the old `history.closed` rule, or as building a second lifetime model. The rule is now stated in one sentence - a piece ending does not permanently close the label set, a repeated value in one field at one position is still an error, and only the cross-piece check moves to the merge boundary, under §4.4's condition. Implementations keep their local check and let the merge add the cross-partition one. The channel-close branch does not need a new completion protocol. The fork already forwards input errors and panics as errors and only sends a completion sentinel on success, so an ordinary upstream failure cannot arrive as a successful early EOF. What the branch lacks is a guard, and the stream already counts what it needs: close with `remaining_partitions > 0` is a terminal error, and success EOF only once the count reaches zero. Also adds the failure-path case to acceptance: fragments produced before an error must make the downstream segment fail, not run a window over what it happened to receive. Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>