Skip to content

KAFKA-14339 : Do not perform producerCommit on serializationError when trying offsetWriter flush - #12920

Merged
C0urante merged 8 commits into
apache:trunkfrom
gharris1727:doNotCommitOnSerializationError
Nov 30, 2022
Merged

C0urante merged 8 commits into
apache:trunkfrom
gharris1727:doNotCommitOnSerializationError

Conversation

@gharris1727

Copy link
Copy Markdown
Contributor

Description from #12784:

We shouldn't commitTransaction() on producer, when offsetWriter faces some issue and returns without sending offsets to producer.

Additionally adds a test for asynchronous offset send failures that propagate during commitTransaction.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@C0urante C0urante left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @gharris1727, looks great. A few small comments but then this should be good to go!

@C0urante C0urante left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks Greg! Will merge and backport pending CI.

@C0urante

Copy link
Copy Markdown
Contributor

Test failures are unrelated; merging

@C0urante
C0urante merged commit 3799125 into apache:trunk Nov 30, 2022
C0urante pushed a commit that referenced this pull request Nov 30, 2022
honshu added a commit to confluentinc/kafka that referenced this pull request Nov 30, 2022
* apache-kafka/trunk: (31 commits)
  KAFKA-14413: Separate MirrorMaker configurations for each connector (apache#12899)
  MINOR: Fix config documentation formatting (apache#12921)
  KAFKA-13731: Allow standalone workers to be started without providing any connector configurations (apache#11890)
  MINOR: Fix docs in security.html (apache#12851)
  MINOR: Remove config/kraft/README.md from rat exclusion list (apache#12923)
  MINOR: Update Gradle to 7.6 (apache#12918)
  KAFKA-14414: Fix request/response header size calculation (apache#12917)
  KAFKA-14339 : Do not perform producerCommit on serializationError when trying offsetWriter flush (apache#12920)
  KAFKA-14367; Add `JoinGroup` to the new `GroupCoordinator` interface (apache#12845)
  MINOR: buildoutput.log should be under the `build` directory (apache#12919)
  ...
guozhangwang pushed a commit to guozhangwang/kafka that referenced this pull request Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants