Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Besides, we sometimes wants to "peek" the the incoming records incoming, to do some testing, without affecting the offsets, like the "peek" method provided in many data structures. So, in this "peek" method, we won't increase the position offset in the partition. That means, under the `enable.auto.commit = true` (default setting), the committed offsets won't be incremented, and in the next "poll", the returned data will still include the records returned by `peek`. (of course if user manually commit the offsets, the offsets will be incremented)

...