Skip to content

Comments

fix(server): fix consumer group leave race and append_messages#2521

Merged
numinnex merged 1 commit intomasterfrom
fix_consumer_group_leave_and_append_messages
Dec 29, 2025
Merged

fix(server): fix consumer group leave race and append_messages#2521
numinnex merged 1 commit intomasterfrom
fix_consumer_group_leave_and_append_messages

Conversation

@numinnex
Copy link
Contributor

This PR fixes an race condition when client leaves consumer group, members collection was in inconsistent state, leading to panic on the remove method call.

Additionally fixes an concurrency issue affecting current_position pointer in active segment, leading to incorrect indexes being written to disk. The scenario only happen in cases when every request append_messages from the client triggered commit of the journal and disk store.

hubcio
hubcio previously approved these changes Dec 29, 2025
@numinnex numinnex force-pushed the fix_consumer_group_leave_and_append_messages branch from 3dfe2ba to 40e4af8 Compare December 29, 2025 15:57
@numinnex numinnex merged commit c1ea81f into master Dec 29, 2025
54 checks passed
@numinnex numinnex deleted the fix_consumer_group_leave_and_append_messages branch December 29, 2025 19:32
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.

4 participants