KIP-937 — Improve Message Timestamp Validation
Accepted Kafka 3.6 Broker
Adds a new log.message.timestamp.before.max.ms config (and optionally log.message.timestamp.after.max.ms) for brokers/topics to reject producer records whose CreateTime timestamp is too far in the past or future, returning INVALID_TIMESTAMP. The existing log.message.timestamp.difference.max.ms config was a symmetric bound that could not distinguish past vs. future violations, and its default of Long.MAX_VALUE allowed producers misconfigured with nanosecond timestamps to corrupt log retention behavior.
Details
| Author | Mehari Beyene |
| Status | Accepted |
| Kafka Version | 3.6 |
| JIRA | KAFKA-14991 |
| Wiki | View on Apache Wiki |
| Created | 2023-05-30 |
| Last Modified | 2025-06-03 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.