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

chore: upgrade kafka producer lib wolff to 1.10.4 handle message_too_large #13079

Merged

Conversation

zmstone
Copy link
Member

@zmstone zmstone commented May 21, 2024

Fixes EMQX-12382

Release version: v/e5.7.1

Summary

wolff-1.10.4 handles message_too_large error code from Kafka. It tries to split the too-large batch into single-call batches (for EMQX, one call batch is always one message), and retry. In case a single-call batch is too large, EMQX should increment a failure counter.

PR Checklist

Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:

  • Added tests for the changes
  • Added property-based tests for code which performs user input validation
  • Changed lines covered in coverage report
  • Change log has been added to changes/(ce|ee)/(feat|perf|fix|breaking)-<PR-id>.en.md files
  • For internal contributor: there is a jira ticket to track this change
  • Created PR to emqx-docs if documentation update is required, or link to a follow-up jira ticket
  • Schema changes are backward compatible

Checklist for CI (.github/workflows) changes

  • If changed package build workflow, pass this action (manual trigger)
  • Change log has been added to changes/ dir for user-facing artifacts update

@zmstone zmstone force-pushed the 0521-handle-kafka-message_too_large-error branch 2 times, most recently from fb45649 to d595a9f Compare May 21, 2024 07:32
@zmstone zmstone changed the title chore: upgrade kafka producer lib wolff to 1.10.4 chore: upgrade kafka producer lib wolff to 1.10.4 handle message_too_large May 21, 2024
thalesmg
thalesmg previously approved these changes May 21, 2024
@zmstone zmstone force-pushed the 0521-handle-kafka-message_too_large-error branch from d595a9f to fc914e5 Compare May 21, 2024 19:48
wolff-1.10.4 handles message_too_large error code from Kafka.
It tries to split the too-large batch into single-call batches
(for EMQX, one call batch is always one message), and retry.
In case a single-call batch is too large, EMQX should increment
a failure counter.
@zmstone zmstone force-pushed the 0521-handle-kafka-message_too_large-error branch from fc914e5 to a00d9f1 Compare May 30, 2024 13:40
@zmstone zmstone marked this pull request as ready for review May 30, 2024 13:41
@zmstone zmstone requested a review from a team as a code owner May 30, 2024 13:41
@zmstone zmstone merged commit e381696 into emqx:release-57 May 30, 2024
177 checks passed
@zmstone zmstone deleted the 0521-handle-kafka-message_too_large-error branch May 30, 2024 19:11
@emqxqa
Copy link

emqxqa commented Jun 3, 2024

TestExecution

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.

None yet

5 participants