You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yolken-segment
changed the title
Resetting consumer offsets to latest causes lag to show as -2
Resetting consumer offsets to latest causes lag to show as -2
Aug 26, 2020
If you run
reset-offsets
with--offset=-1
, i.e. to reset the consumer group to the latest offset, the offsets show up as-2
in the lag output, e.g.:They're not actually
-2
(i.e., earliest offset) in Kafka; this is just an artifact of this logic in kafka-go: https://github.com/segmentio/kafka-go/blob/bd93f32228e23a60cc087dea40d5f81a41ed34d0/client.go#L113. We should probably remove that logic from the previous function.The text was updated successfully, but these errors were encountered: