KAFKA-12841: NPE from the provided metadata in client callback in case of ApiException#10951
KAFKA-12841: NPE from the provided metadata in client callback in case of ApiException#10951kirktrue wants to merge 2 commits intoapache:trunkfrom kirktrue:KAFKA-12841-resolve-callback-npe
Conversation
|
@ayoukhananov - you're absolutely correct that there are conditions wherein |
…e of ApiException Using the InterceptorCallback wrapper in the case of ApiException so that we will adhere correctly to the Callback contract for onCompletion specifying a valid (dummy) TopicPartition.
|
@hachikuji - would you be willing to assign a reviewer for this PR? The failing tests look like they're related to KRaft tests, so I don't think they're related. |
|
@cmccabe - could you take a look at this and/or assign a reviewer for this? Thanks! |
|
If I understand correctly, the PR makes up a fake partition so that |
|
Thanks @cmccabe for looking at this!
Yeah, I'm not crazy about it either. There was some "prior art" in the codebase where the same thing was done (
My interpretation was that was akin to changing the interface of the I'm happy to make the change to the JavaDoc, as suggested. Thanks! |
|
Closing this PR in favor of #11689. |
Jira: https://issues.apache.org/jira/browse/KAFKA-12841
Using the
InterceptorCallbackwrapper in the case ofApiExceptionsothat we will adhere correctly to the
Callbackcontract foronCompletionspecifying a valid (dummy)
TopicPartition.Committer Checklist (excluded from commit message)
I'm also supposed to add: