Skip to content

statement-store: stop a subscription when deduplication can no longer be guaranteed - #3338

Draft
AndreiEres wants to merge 1 commit into
ae-statement-03-subscriptionsfrom
ae-statement-04-stop-overflow
Draft

statement-store: stop a subscription when deduplication can no longer be guaranteed#3338
AndreiEres wants to merge 1 commit into
ae-statement-03-subscriptionsfrom
ae-statement-04-stop-overflow

Conversation

@AndreiEres

@AndreiEres AndreiEres commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

PR series, in merge order:

Part 4/5 of the series splitting #3330.

A statement_unstable_subscribe subscription is stopped, with a stop event, once its deduplication cache is full: remembering one more statement would evict the oldest entry, after which that statement could be reported twice, violating the at-most-once guarantee. With the default maxSeenStatements of 65536 a subscription therefore dies after roughly that many distinct statements and the client resubscribes.

Legacy subscriptions keep evicting silently, the old API having no way to report this.

🤖 Generated with Claude Code

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.

statement-store: Implement RPCv2 specification

1 participant