Hi Mayuresh, I took a closer look at the code and we seem to throw `InvalidRecordException` in a number of cases where retrying doesn't seem to make sense. For example:
throw new InvalidRecordException(s"Log record magic does not match outer magic ${batch.magic}") throw new InvalidRecordException("Found invalid number of record headers " + numHeaders); throw new InvalidRecordException("Found invalid record count " + numRecords + " in magic v" + magic() + " batch"); It seems like most of the usage of InvalidRecordException is for non retriable errors. Maybe we need to introduce a non retriable version of this exception and use it in the various places where it makes sense. Ismael On Tue, Apr 4, 2017 at 12:22 AM, Mayuresh Gharat <gharatmayures...@gmail.com > wrote: > Hi All, > > It seems that there is no further concern with the KIP-135. At this point > we would like to start the voting process. The KIP can be found at > https://cwiki.apache.org/confluence/display/KAFKA/KIP- > 135+%3A+Send+of+null+key+to+a+compacted+topic+should+throw+ > non-retriable+error+back+to+user > <https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=67638388 > > > > Thanks, > > Mayuresh >