Setting consumer offset

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting consumer offset

avilevi
Hi,
If I set in code the consumer offset e.g consumer.setStartFromTimestamp and I start the job from a curtain savepoint/checkpoint will the offset in the checkpoint will override the the offset that is defined in the code  ?

Best Regards
Avi

Reply | Threaded
Open this post in threaded view
|

Re: Setting consumer offset

Paul Lam
Hi Avi,

Yes, it will. The restored state takes priority over the start position.

Best,
Paul Lam

在 2019年7月2日,15:11,Avi Levi <[hidden email]> 写道:

Hi,
If I set in code the consumer offset e.g consumer.setStartFromTimestamp and I start the job from a curtain savepoint/checkpoint will the offset in the checkpoint will override the the offset that is defined in the code  ?

Best Regards
Avi