Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
One of the changes in KIP-192 is to send a DUPLICATE_SEQUENCE error code with a ProduceResponse when we detect a duplicate on the broker but don't have the batch metadata for the sequence in question in memory.
To handle this on the client, we mark the batch as successful, but cannot return the offset and timestamp information in the RecordMetadata returned in the produce future. Thus we add RecordMetadata.hasOffset and RecordMetadata.hasTimestamp methods to enable applications to discover whether the broker returned valid metadata which can be used.
Attachments
Issue Links
- links to