Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support LOG_APPEND_TIME record timestamps #838

Merged
merged 3 commits into from
Aug 20, 2020
Merged

Conversation

Nevon
Copy link
Collaborator

@Nevon Nevon commented Aug 14, 2020

When a topic is configured with message.timestamp.type=LogAppendTime the timestamp on the record should be set to the maxTimestamp of the recordbatch rather than the usual firstTimestamp + timestampDelta.

https://cwiki.apache.org/confluence/display/KAFKA/KIP-32+-+Add+timestamps+to+Kafka+message

Fixes #768

When a topic is configured with `message.timestamp.type=LogAppendTime`
the timestamp on the record should be set to the `maxTimestamp` of
the recordbatch rather than the usual `firstTimestamp + timestampDelta`.

Fixes #768
Copy link
Collaborator

@JaapRood JaapRood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having had a quick look over the issue and KIP mentioned, your implementation seems to make sense! Do any of the Typescript types need updating?

@Nevon
Copy link
Collaborator Author

Nevon commented Aug 18, 2020

That shouldn't be needed, as we don't expose the Fetch response, which is the only data structure that has changed in any way.

@Nevon Nevon merged commit e973597 into master Aug 20, 2020
@Nevon Nevon deleted the support-log-append-time branch August 20, 2020 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consumed messages reference the wrong timestamp
2 participants