Hey Lorenzo Rovere,

Consider the case where you want to reprocess all the data. Let's say your
process had a bug. You fixed it and now you want to reprocess everything to
produce the correct output.

Similarly, there can be other use cases for resetting the consumer offsets
and reprocessing the input.

Regards,
Mangat

On Thu, May 6, 2021 at 11:25 AM Rovere Lorenzo <l.rov...@reply.it> wrote:

> Hi,
>
> I’m playing with the kafka-consumer-groups.sh command.
>
> I wanted to ask the utility of the *--to-current* option used to *reset
> offsets of a consumer group to current offset*. The thing I don’t
> understand is in which scenario I would want to use this option. If I’m
> already at the current offset, why would I need to reset to the offset I’m
> already at?
>
> Thanks in advance
>
>
>
> Lorenzo Rovere
>
>
>
>
>
> Lorenzo Rovere
>
> Technology Reply
> Via Avogadri, 2
> 31057 - Silea (TV) - ITALY
> phone: +39 0422 1836521
> l.rov...@reply.it
> www.reply.it
>
> [image: Technology Reply]
>

Reply via email to