Hello teams I have a GitHub repo to reproduce this issue: https://github.com/nenryo/kafka_consumer_issue
On Mon, Apr 7, 2025 at 10:13 AM kirin sairento <sairentoki...@gmail.com> wrote: > I suspect this issue is related to log segment boundaries. When dealing > with non-contiguous offsets that span across segments—for example: > - Segment 1 contains offsets [0, 1, 2] > - Segment 2 contains offsets [4, 6, 7] > > The observed behavior is as follows: > - seek(3) + poll() returns empty data > - seek(5) + poll() successfully returns data > > Is this a bug? My use case requires consuming from a specific position > (e.g., seek(msg.offset + 1)), but with non-contiguous offsets, the scenario > described above may occur. > > [image: d.jpg] > [image: t.jpg] >