Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 thanretention-periodeverypruning-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.