KIP-1106 — Add duration based offset reset option for consumer clients
Accepted Kafka 4.0 ConsumerAdmin
Adds a duration-based offset reset option (`by-duration`) to consumer clients and the `kafka-consumer-groups.sh` tool, allowing consumers to reset to the offset corresponding to `now - duration` rather than only to earliest/latest/specific timestamp. With tiered storage enabling long retention, operators need a human-friendly way to seek back by time interval without computing an absolute timestamp.
Details
| Author | Manikumar Reddy O. |
| Status | Accepted |
| Kafka Version | 4.0 |
| JIRA | KAFKA-17934 |
| Wiki | View on Apache Wiki |
| Created | 2024-11-04 |
| Last Modified | 2024-12-12 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.