-
Notifications
You must be signed in to change notification settings - Fork 14k
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
KAFKA-12841: NPE from the provided metadata in client callback in case of ApiException #10951
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
InterceptorCallback
wrapper in the case ofApiException
sothat we will adhere correctly to the
Callback
contract foronCompletion
specifying a valid (dummy)
TopicPartition
.Committer Checklist (excluded from commit message)
I'm also supposed to add: