You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Stig Rohde Døssing (JIRA)" <ji...@apache.org> on 2018/12/13 16:39:00 UTC
[jira] [Created] (KAFKA-7733) MockConsumer doesn't respect reset
strategy
Stig Rohde Døssing created KAFKA-7733:
-----------------------------------------
Summary: MockConsumer doesn't respect reset strategy
Key: KAFKA-7733
URL: https://issues.apache.org/jira/browse/KAFKA-7733
Project: Kafka
Issue Type: Improvement
Components: clients
Reporter: Stig Rohde Døssing
Assignee: Stig Rohde Døssing
The MockConsumer throws OffsetOutOfRangeException if a record is behind the beginning offset. This is unlike the real consumer, which will use auto.offset.reset to decide whether to seek to the beginning, end or throw an exception.
It is convenient if the poll method does the offset reset properly, since it allows for testing cases like a consumer requesting offsets from a truncated log.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)