Skip to content

Changing raft.segment_max_entries set to higher than 2^16 (65,536) results in an exception (ra_log_segment_unexpected_eof) #9731

Closed Answered by michaelklishin
zaeemarshad asked this question in Other
Discussion options

You must be logged in to vote

65356 is 2^16, so values that require more than two bytes overflow the size field in the segment file format:

Header = <<?MAGIC, ?VERSION:16/unsigned, MaxCount:16/unsigned>>,

This is confirmed by values up to 65355 not triggering this exception.

Replies: 4 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@michaelklishin
Comment options

@michaelklishin
Comment options

@michaelklishin
Comment options

@michaelklishin
Comment options

Answer selected by michaelklishin
@michaelklishin
Comment options

@zaeemarshad
Comment options

@michaelklishin
Comment options

@zaeemarshad
Comment options

Comment options

You must be logged in to vote
2 replies
@kjnilsson
Comment options

@michaelklishin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #9731 on October 19, 2023 09:20.