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

[KIP-396] List offsets implementation #1576

Merged
merged 25 commits into from
Oct 25, 2023
Merged

Conversation

mahajanadhitya
Copy link
Contributor

No description provided.

@mahajanadhitya mahajanadhitya requested a review from a team as a code owner May 30, 2023 06:33
@mahajanadhitya mahajanadhitya force-pushed the feature/AdminClient-ListOffsets branch from ca13c4e to 7f2d748 Compare July 18, 2023 12:21
@cla-assistant
Copy link

cla-assistant bot commented Aug 15, 2023

CLA assistant check
All committers have signed the CLA.

@mahajanadhitya mahajanadhitya force-pushed the feature/AdminClient-ListOffsets branch from c483723 to 767ea7e Compare October 12, 2023 11:49
@emasab emasab changed the title Feature/admin client list offsets [KIP-396] List offsets implementation Oct 13, 2023
Copy link
Contributor

@emasab emasab left a comment

Choose a reason for hiding this comment

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

Here are the comments, sent a PR where I've done most of the suggestions for testing them.

and move them to a separate file
…fsets-changes

[KIP-396] Address most of the PR comments
and _make_generic_futmap_result
Copy link
Member

@pranavrth pranavrth left a comment

Choose a reason for hiding this comment

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

First Round of Review. Checking test cases.

Copy link
Member

Choose a reason for hiding this comment

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

Can we specify that the list_offsets example is present in adminapi.py?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not in the changed files we can add a comment but do not think that is a great thing to do, list_offsets is admin api anybody can easily search it. So seems unnecessary.

Copy link
Contributor

@emasab emasab left a comment

Choose a reason for hiding this comment

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

Thanks @mahajanadhitya @pranavrth . This looks good, let's wait for @pranavrth approval or for other comments.

topic_partition_offsets = {}
if len(args) < 1:
raise ValueError(
f"Invalid number of arguments for list offsets, expected at least 1, got {len(args)}")
Copy link
Member

Choose a reason for hiding this comment

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

it can only be 0 here no? len(args) < 1.

Copy link
Member

@pranavrth pranavrth left a comment

Choose a reason for hiding this comment

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

Few more comments.
Add Changelog.

an empty future dictionary.
Increased test coverage
Copy link
Member

@pranavrth pranavrth left a comment

Choose a reason for hiding this comment

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

LGTM!. Minor nits.

@emasab emasab merged commit aaeca9a into master Oct 25, 2023
@emasab emasab deleted the feature/AdminClient-ListOffsets branch October 25, 2023 11:34
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.

5 participants