Repository navigation
KAFKA-14339 : Do not perform prodcuerCommit on serializationError when trying offsetWriter flush - #12784
KAFKA-14339 : Do not perform prodcuerCommit on serializationError when trying offsetWriter flush#12784sudeshwasnik wants to merge 4 commits into
Conversation
|
hi @C0urante, could you ptal on this quick small change |
8c4b5c5 to
1d9be8f
Compare
|
Thanks @sudeshwasnik, good catch! Would you mind filing a Jira for this so that others who encounter the same bug can track its status and fixed versions? Regarding the actual changes--I think we should expand unit testing coverage here. The tweak to |
|
Thanks @sudeshwasnik . This is a nice catch. I have requested couple of cosmetic changes. And I agree with Chris, might need to increase the test coverage. Currently the only test part of this change is removing an expected Call on |
|
@C0urante @vamossagar12 quick dumb question - if there is an Async failure (detected after offsets are dispatched to producer), won't producer.commitTransaction also throw exception eventually? which gets captured in Although I agree, we should anyways. And +1 to the suggestion! I'll try to add tests for Async failures (which is different from |
|
@sudeshwasnik Good point. I think with the code base as it is right now, we do get the invariant that asynchronous failures occur if and only if an offset is dispatched to I'd still like to see coverage for (and handling of) this case if possible, though, since we may modify the offset writer, offset backing store, or Kafka log classes in a way that causes the callback to be invoked without the record making it to |
|
@sudeshwasnik are you still working on this? |
|
@C0urante sorry for the delay. I'll try to make the relevant changes and get back on this in few days. |
|
Closing this PR. Can reassign this ticket. Shouldn't block on my prioritizations. |
|
Superseded by #12920. |
We shouldn't commitTransaction() on producer, when offsetWriter faces some issue and returns without sending offsets to producer.
Committer Checklist (excluded from commit message)