Producer RecordMetadata offset

2019-01-24 Thread Eymeric Guyot
Hello, In my application when I send hundreds of thousands of messages I use the Metadata in the callback to save the offset of the record for future usage. However sometimes in something like 1% of the cases the metadata.offset() returns -1 which makes things hard for me later as I can't find the

Producer RecordMetadata offset

2019-01-24 Thread Eymeric Guyot
Hello, In my application when I send hundreds of thousands of messages I use the Metadata in the callback to save the offset of the record for future usage. However sometimes in something like 1% of the cases the metadata.offset() returns -1 which makes things hard for me later as I can't find the