Skip to content

RATIS-2434. Regression test for data race between SegmentedRaftLog.get() and LogSegment.append().#1377

Closed
jojochuang wants to merge 1 commit intoapache:masterfrom
jojochuang:RATIS-2434
Closed

RATIS-2434. Regression test for data race between SegmentedRaftLog.get() and LogSegment.append().#1377
jojochuang wants to merge 1 commit intoapache:masterfrom
jojochuang:RATIS-2434

Conversation

@jojochuang
Copy link
Contributor

@jojochuang jojochuang commented Mar 13, 2026

Generated-by: Gemini CLI + Gemini 2.5 Pro

What changes were proposed in this pull request?

  • Add a regression test for RATIS-2282 using code injection helper.
  • Add a javadoc comment in LogSegment to explain that the order of appending to records and cache is critical, because there's no lock to ensure atomicity.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/RATIS-2434

How was this patch tested?

Test code generated by Gemini, reviewed manually. Tests passed.

…t() and LogSegment.append().

Generated-by: Gemini CLI + Gemini 2.5 Pro
@jojochuang jojochuang closed this Mar 13, 2026
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