Skip to content

feat: prune the sequencer from the sync operator app - #115

Open
salindne wants to merge 4 commits into
feat/sync-operator-traffic-report-v2from
feat/sync-operator-sequencer-pruning
Open

salindne wants to merge 4 commits into
feat/sync-operator-traffic-report-v2from
feat/sync-operator-sequencer-pruning

Conversation

@salindne

@salindne salindne commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Refs ChainSafe/canton-extending-mainnet#152

Stacked on #111.

Canton prunes the sequencer's traffic journal before it moves the pruning bound, so a traffic report read during a prune can return wrong totals without noticing. The sync operator app now prunes the sequencer itself and keeps reads and prunes apart: a read during a prune gets a 503, and a prune waits for reads in flight.

sequencer-pruning (off by default) prunes data older than retention-period every pruning-interval, only as far as the members have acknowledged. If a prune call fails, reads stay closed until a retry succeeds or the bound shows the prune finished. When pruning is on, reads also start closed until the first run, in case a prune from before a restart is still going.

Canton prunes the traffic journal before it moves the pruning bound, so a read during a prune can return wrong totals. Reads fail with a 503 while they are closed, and closing waits for the reads in flight.

Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
Off by default. Prunes data older than the retention period, as far as the members have acknowledged, with the traffic report's reads closed. When pruning is on, reads also start closed until the first run, in case a prune from before a restart is still going.

Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant