Skip to content

Conversation

@izzyharker
Copy link
Contributor

@izzyharker izzyharker commented Oct 16, 2025

This PR backports the change from #20653 to 4.0

The group coordinator has been having issues with unknown errors. The
theory is that this is caused by optimistic compression estimates which
cause unchecked batch overflows when trying to write.

This PR adds a check for uncompressed record size to flush batches more
eagerly and avoid overfilling partially-full batches. This should make
the group coordinator errors less frequent.

Also added tests to ensure this change does not impact desired behavior
for large compressible records.

Reviewers: Sean Quah [email protected], David Jacot [email protected]

@izzyharker izzyharker marked this pull request as ready for review October 16, 2025 15:25
@dajac dajac self-requested a review October 16, 2025 15:41
Copy link
Member

@dajac dajac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dajac dajac merged commit 78fff9c into apache:4.0 Oct 17, 2025
14 of 20 checks passed
@dajac dajac deleted the server_errors_iharker branch October 17, 2025 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants