Skip to content

Add explicit dirty bit to pushers::Counter - #825

Merged
frankmcsherry merged 1 commit into
TimelyDataflow:masterfrom
frankmcsherry:counter_dirty
Oct 23, 2026
Merged

frankmcsherry merged 1 commit into
TimelyDataflow:masterfrom
frankmcsherry:counter_dirty

Conversation

@frankmcsherry

@frankmcsherry frankmcsherry commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Fixes #824

#824 observed a bug through an untested pattern of interactions that was definitely wrong. Adding an explicit dirty seems to be the right fix, leaving a few lingering questions about e.g. empty messages and whether they should dirty the bit, stuff like that. But the conservative approach, of flushing if there has been even a single Some message, seems to fix things.

Also adds a regression test, though it raises the point that better still would be a simulation harness, like #810, that is able to explore the interaction space better.

@frankmcsherry
frankmcsherry merged commit d497545 into TimelyDataflow:master Oct 23, 2026
9 checks passed
@frankmcsherry
frankmcsherry deleted the counter_dirty branch October 23, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Counter drops a flush once produced is drained, stranding records in an exchange

1 participant