Skip to content

fix(segments): prevent fork chain from extending past divergence point#1909

Merged
Theodus merged 1 commit intomainfrom
theodus/compaction
Mar 5, 2026
Merged

fix(segments): prevent fork chain from extending past divergence point#1909
Theodus merged 1 commit intomainfrom
theodus/compaction

Conversation

@Theodus
Copy link
Member

@Theodus Theodus commented Mar 4, 2026

Stop fork building when a segment duplicates canonical data (same end number and hash), avoiding excessive re-extraction from unrelated old segments that happen to chain backwards.

Stop fork building when a segment duplicates canonical data (same end
number and hash), avoiding excessive re-extraction from unrelated old
segments that happen to chain backwards.
@leoyvens
Copy link
Collaborator

leoyvens commented Mar 5, 2026

Fix seems very reasonable. I'm sure we could go back to this algo and optimize the data structures if performance proves to be an issue.

@Theodus Theodus merged commit 08d3cd0 into main Mar 5, 2026
8 checks passed
@Theodus Theodus deleted the theodus/compaction branch March 5, 2026 13:13
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.

2 participants