Versions Compared

Key

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

...

In this scenario, if auto commit is enabled, we would commit offsets from buffer2 directly into the original commit log. Meanwhile, the offsets found in buffer1 will be checkpointed in another Kafka topic. Once When calling KafkaConsumer#fetchCommittedOffsets or KafkaConsumer#committed, if consumer2 has not terminated, we would merge both commit logs into a larger one, then only offsets checkpointed by consumer2 will be sent. Otherwise, the offsets checkpointed by consumer2 will be returned instead.

Effects on KafkaConsumer#poll()

...