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

async_producer: clarify ProducerMessage Timestamp doc #1367

Merged
merged 1 commit into from
May 3, 2019

Conversation

kjgorman
Copy link
Contributor

@kjgorman kjgorman commented May 2, 2019

The Timestamp field was introduced in #678 and at this point was only set by
the broker.

Subsequent to this, the changes described in KIP-32 were implemented,
allowing the Timestamp of the message to be set by a producer when the
broker was configured to use CreateTime.

This commit updates the doc on the ProducerMessage struct to reflect that
depending on which of the CreateTime and LogAppendTime modes are active,
the Timestamp can be meaningfully set by either the request or the
response.

@ghost ghost added the cla-needed label May 2, 2019
@kjgorman kjgorman marked this pull request as ready for review May 2, 2019 17:38
The `Timestamp` field was introduced in
IBM#678 and at this point was only set by
the broker.

Subsequent to this, the changes described in [KIP-32] were implemented,
allowing the `Timestamp` of the message to be set by a producer when the
broker was configured to use `CreateTime`.

This commit updates the doc on the ProducerMessage struct to reflect that
depending on which of the `CreateTime` and `LogAppendTime` modes are active,
the `Timestamp` can be meaningfully set by either the request or the
response.

[KIP-32]: https://cwiki.apache.org/confluence/display/KAFKA/KIP-32+-+Add+timestamps+to+Kafka+message
@kjgorman kjgorman force-pushed the producer-message-timestamp-documentation branch from cb3c9ad to 1889f36 Compare May 2, 2019 17:43
@ghost ghost removed the cla-needed label May 2, 2019
Copy link
Contributor

@varun06 varun06 left a comment

Choose a reason for hiding this comment

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

Thanks for the update.

@bai bai merged commit 457a8e6 into IBM:master May 3, 2019
@kjgorman kjgorman deleted the producer-message-timestamp-documentation branch May 3, 2019 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants