Skip to content

MINOR: Rephrase Javadoc summary for ConsumerRecord#2290

Closed
LoneRifle wants to merge 2 commits intoapache:trunkfrom
LoneRifle:patch-1
Closed

MINOR: Rephrase Javadoc summary for ConsumerRecord#2290
LoneRifle wants to merge 2 commits intoapache:trunkfrom
LoneRifle:patch-1

Conversation

@LoneRifle
Copy link
Copy Markdown
Contributor

The original Javadoc description for ConsumerRecord is slightly confusing in that it can be read in a way such that an object is a key value pair received from Kafka, but (only) consists of the metadata associated with the record. This PR makes it clearer that the metadata is included with the record, and moves the comma so that the phrase "topic name and partition number" in the sentence is more closely associated with the phrase "from which the record is being received".

@asfbot
Copy link
Copy Markdown

asfbot commented Dec 23, 2016

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/372/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Dec 23, 2016

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/374/
Test FAILed (JDK 8 and Scala 2.11).

@asfbot
Copy link
Copy Markdown

asfbot commented Dec 23, 2016

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/373/
Test FAILed (JDK 8 and Scala 2.12).

* A key/value pair to be received from Kafka. This consists of a topic name and a partition number, from which the
* record is being received and an offset that points to the record in a Kafka partition.
* A key/value pair to be received from Kafka. This also consists of a topic name and a partition number from which the
* record is being received, and an offset that points to the record in a Kafka partition.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should probably mention the timestamp that was added in 0.10.0.0.

Copy link
Copy Markdown
Contributor Author

@LoneRifle LoneRifle Dec 28, 2016

Choose a reason for hiding this comment

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

Done, will attempt to squash all commits later once approved.

@asfbot
Copy link
Copy Markdown

asfbot commented Dec 28, 2016

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/394/
Test FAILed (JDK 8 and Scala 2.12).

@asfbot
Copy link
Copy Markdown

asfbot commented Dec 28, 2016

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/393/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Dec 28, 2016

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/395/
Test FAILed (JDK 8 and Scala 2.11).

@ewencp
Copy link
Copy Markdown
Contributor

ewencp commented Dec 30, 2016

LGTM (test failures are due to an unrelated known issue)

@asfgit asfgit closed this in 3d7e884 Dec 30, 2016
* record is being received and an offset that points to the record in a Kafka partition.
* A key/value pair to be received from Kafka. This also consists of a topic name and
* a partition number from which the record is being received, an offset that points
* to the record in a Kafka partition, and a timestamp as marked by the corresponding ProducerRecord.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The timestamp is not necessarily the one in the ProducerRecord (if LogAppendTime is used), so it would be good to clarify that.

soenkeliebau pushed a commit to soenkeliebau/kafka that referenced this pull request Feb 7, 2017
The original Javadoc description for `ConsumerRecord` is slightly confusing in that it can be read in a way such that an object is a key value pair received from Kafka, but (only) consists of the metadata associated with the record. This PR makes it clearer that the metadata is _included_ with the record, and moves the comma so that the phrase "topic name and partition number" in the sentence is more closely associated with the phrase "from which the record is being received".

Author: LoneRifle <LoneRifle@users.noreply.github.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes apache#2290 from LoneRifle/patch-1
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.

4 participants