console icon indicating copy to clipboard operation
console copied to clipboard

Add UI helpers for editing consumer group commits

Open rcrowe opened this issue 2 years ago • 2 comments

A common use case I find myself doing is to change a consumer groups offset by a numeric amount, typically --shift-by 1 and I'd like Kowl to add support.

For example, say we see a corrupt message on a topic & need to bump a consumer past it, we would issue the following...

/opt/kafka/bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group {group} --reset-offsets --shift-by 1 --topic {topic}:{partition} --execute

rcrowe avatar Apr 12 '22 16:04 rcrowe

I think this is already possible given that you can edit the offset as you wish - and you also see the current index for the group right? So is it safe to assume that this request is just some sugar so that you don't need to lookup the previous offset (which might be existent in the edit group modal already, not sure) and then increment that index by 1 to set it as a new offset?

weeco avatar Apr 12 '22 18:04 weeco

Thanks for the speedy reply @weeco

I think this is already possible given that you can edit the offset as you wish

I'm obviously doing something wrong or missing something obvious, but I can only edit an offset with the following & not as you wish?

  • start offset
  • end offset
  • specific time
  • other consumer group

I've clicked around and failing to find a place to manually change the offset in 1.5.0. Are you saying it's already possible to enter a value for an offset beyond the above options?

If there is indeed a way to manually change the offset to a specific value 🤞🏻 then this would indeed be syntatic sugar to allow a spinner to increase the offset #

rcrowe avatar Apr 12 '22 20:04 rcrowe