Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raft.segment_max_entries needs a config schema validator to avoid Raft log segment file field overflow #9733

Closed
michaelklishin opened this issue Oct 19, 2023 · 0 comments · Fixed by #9737
Assignees
Milestone

Comments

@michaelklishin
Copy link
Member

As investigated in #9731, when raft.segment_max_entries is set to a value >= 2^16 (65,536), the segment file header field will overflow and consumers will run into an exception such as ra_log_segment_unexpected_eof or gap_between_snapshot_and_first_index ({corrupt_log,gap_between_snapshot_and_first_index,{-1,779977}}), depending on Ra version.

raft.segment_max_entries needs a config schema validator.

@michaelklishin michaelklishin added this to the 3.12.8 milestone Oct 19, 2023
@michaelklishin michaelklishin self-assigned this Oct 19, 2023
michaelklishin added a commit that referenced this issue Oct 19, 2023
mergify bot pushed a commit that referenced this issue Oct 19, 2023
(cherry picked from commit e87a399)
mergify bot pushed a commit that referenced this issue Oct 19, 2023
(cherry picked from commit e87a399)
(cherry picked from commit 687f2af)
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 a pull request may close this issue.

1 participant