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

KAFKA-19060 Documented null edge cases in the Clients API JavaDoc #19393

Open
wants to merge 5 commits into
base: trunk
Choose a base branch
from

Conversation

m1a2st
Copy link
Collaborator

@m1a2st m1a2st commented Apr 6, 2025

Some client APIs may return null values in the map, but this
behaviorisn’t documented in the JavaDoc. We should update the JavaDoc to
include these edge cases.

These method have been modified.

  • beginningOffsets
  • endOffsets

@github-actions github-actions bot added triage PRs from the community consumer clients small Small PRs labels Apr 6, 2025
Copy link
Contributor

@Yunyung Yunyung 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 PR. I left one commment.

In your PR description has a typo:
beginningOffsets -> endOffsets

@@ -1658,7 +1660,8 @@ public Map<TopicPartition, Long> beginningOffsets(Collection<TopicPartition> par
* @see #seekToEnd(Collection)
*
* @param partitions the partitions to get the end offsets.
* @return The end offsets for the given partitions.
* @return The end offsets for the given partitions. If the offset for a specific partition cannot be found or the
* timeout is zero, the corresponding value will be {@code null}
Copy link
Contributor

@Yunyung Yunyung Apr 7, 2025

Choose a reason for hiding this comment

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

Some paragraphs have periods, while others do not, for existing JavaDocs. I think we could make them all consistent (this can be addressed in another PR).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, but I won't address this changes in this PR.

@m1a2st
Copy link
Collaborator Author

m1a2st commented Apr 7, 2025

Hello @kirktrue, if you have free cycle, PTAL

@github-actions github-actions bot removed the triage PRs from the community label Apr 8, 2025
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.

2 participants