Versions Compared

Key

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

Table of Contents

Status

Current state"Under Discussion"Accepted [VOTE] KIP-93: Improve invalid timestamp handling in Kafka Streams

Discussion thread: TODO [DISCUSS] KIP-93: Improve invalid timestamp handling in Kafka Streams

JIRA

Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyKAFKA-4393

...

Compatibility, Deprecation, and Migration Plan

 This is a breaking, incompatible change because

...

TimestampExtractor interface gets changed. However, it only affect uses that provide a custom timestamp extractor. By default no code change is required and the overall behavior is the same as before this KIP (using default timestamp extractor

...

user gets an exception in case of a negative timestamp).

  • Even if the exception is throw from a different point and the exception message changes (the exception type is the same: StreamsException) the use cannot recover from the exception anyway (i.e., user cannot recover with current behavior and this will not change)

Required code changes:

  • Custom timestamp extractors must be updated by the user to adopt the new interface.:
    • recompile to avoid runtime exception
    • code change to adapt to new interface (to make it compile)

Test Plan

The feature can be tested via unit tests.

...