Re: Quick clarification on ConsumerRecord.getOffset() and RecordMetadata.getOffset()

2020-08-17 Thread Liam Clarke-Hutchinson
Brilliant, thanks for that Matthias :) On Tue, 18 Aug. 2020, 3:07 am Matthias J. Sax, wrote: > Your understanding is correct. > > On 8/16/20 10:25 PM, Liam Clarke-Hutchinson wrote: > > Kia ora koutou katoa, > > > > Just double checking my understanding - the RecordMetadata returned by a > >

Re: Quick clarification on ConsumerRecord.getOffset() and RecordMetadata.getOffset()

2020-08-17 Thread Matthias J. Sax
Your understanding is correct. On 8/16/20 10:25 PM, Liam Clarke-Hutchinson wrote: > Kia ora koutou katoa, > > Just double checking my understanding - the RecordMetadata returned by a > producer send returns an offset for the record - is it the actual offset of > the record on the partition, or

Quick clarification on ConsumerRecord.getOffset() and RecordMetadata.getOffset()

2020-08-16 Thread Liam Clarke-Hutchinson
Kia ora koutou katoa, Just double checking my understanding - the RecordMetadata returned by a producer send returns an offset for the record - is it the actual offset of the record on the partition, or the next offset? Reading the code indicates it was the actual offset. And likewise, when I