KAFKA-14035: Fix NPE caused by missing null check in SnapshottableHashTable::mergeFrom()#12371
Merged
hachikuji merged 1 commit intoapache:trunkfrom Jul 1, 2022
Merged
Conversation
…hTable::mergeFrom() Also adds a simple test case that fails without the check
hachikuji
pushed a commit
that referenced
this pull request
Jul 1, 2022
The NPE causes the kraft controller to be in an inconsistent state. Reviewers: Jason Gustafson <jason@confluent.io>
hachikuji
pushed a commit
that referenced
this pull request
Jul 1, 2022
The NPE causes the kraft controller to be in an inconsistent state. Reviewers: Jason Gustafson <jason@confluent.io>
hachikuji
pushed a commit
that referenced
this pull request
Jul 10, 2022
The NPE causes the kraft controller to be in an inconsistent state. Reviewers: Jason Gustafson <jason@confluent.io>
Member
|
Hi, I still ran into the issue of NPE on a 3.3.1 cluster with 3 nodes. The actual line throwing the NPE is here: https://github.com/apache/kafka/blob/3.3.1/metadata/src/main/java/org/apache/kafka/timeline/SnapshottableHashTable.java#L125 But I cannot speak in Java, no idea about the root cause. The traceback: |
Member
|
There are related discussions on StackOverflow: https://stackoverflow.com/questions/74679400. |
|
@iblislin, I had same problem. Did your solution work? |
Member
|
@hoangphuocbk yeah, that patch works fine for me. I have a kraft cluster with that patch eanbled up for 45 days already. |
Member
|
@iblislin @hoangphuocbk , this issue will be fixed in v3.4.1 and v3.5.0 via this patch: #13653 . Thanks for reporting. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also adds a simple test case that fails without the check