You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jason Gustafson (JIRA)" <ji...@apache.org> on 2018/08/16 00:13:00 UTC
[jira] [Created] (KAFKA-7298) Concurrent DeleteRecords can lead to
fatal OutOfSequence error in producer
Jason Gustafson created KAFKA-7298:
--------------------------------------
Summary: Concurrent DeleteRecords can lead to fatal OutOfSequence error in producer
Key: KAFKA-7298
URL: https://issues.apache.org/jira/browse/KAFKA-7298
Project: Kafka
Issue Type: Bug
Reporter: Jason Gustafson
Assignee: Jason Gustafson
We have logic in the producer to handle unknown producer errors. Basically when the producer gets an unknown producer error, it checks whether the log start offset is larger than the last acknowledged offset. If it is, then we know the error is spurious and we reset the sequence number to 0, which the broker will then accept.
It can happen after a DeleteRecords call, however, that the only record remaining in the log is a transaction marker, which does not have a sequence number. The error we get in this case is OUT_OF_SEQUENCE rather than UNKNOWN_PRODUCER, which is fatal.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)