Skip to content

KAFKA-17203: StreamThread leaking producer instances #16730

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

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

FrankYang0529
Copy link
Member

In test like EosIntegrationTest.shouldCheckpointRestoredOffsetsWhenClosingCleanDuringRestoringStateUpdaterEnabled, the task may throw TaskCorruptedException. After rebalancing, if some pending tasks need to be drained, the TaskManager should use activeTaskCreator.closeAndRemoveTaskProducerIfNeeded(task.id()); to close producer as well, or there may have producer thread leak.

Committer Checklist (excluded from commit message)

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

Signed-off-by: PoAn Yang <payang@apache.org>
Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

LGTM

@chia7712 chia7712 merged commit fd2cd04 into apache:trunk Jul 30, 2024
1 check failed
@FrankYang0529 FrankYang0529 deleted the KAFKA-17203 branch July 31, 2024 00:04
abhi-ksolves pushed a commit to ksolves/kafka that referenced this pull request Jul 31, 2024
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
@mjsax
Copy link
Member

mjsax commented Apr 17, 2025

Just an FYI: this PR introduced a regression bug

https://issues.apache.org/jira/browse/KAFKA-19171

@chia7712
Copy link
Member

@mjsax thanks for reporting. I will take a look at #19507

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.

3 participants