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

add Earliest and Latest reset options #125

Merged
merged 18 commits into from
Mar 27, 2023
Merged

add Earliest and Latest reset options #125

merged 18 commits into from
Mar 27, 2023

Conversation

SaiPrasanna9
Copy link
Contributor

No description provided.

@SaiPrasanna9 SaiPrasanna9 requested a review from a team as a code owner March 20, 2023 11:01
@SaiPrasanna9 SaiPrasanna9 changed the title add reset to Earliest and Latest add Earliest and Latest reset options Mar 20, 2023
cmd/topicctl/subcmd/reset.go Outdated Show resolved Hide resolved
pkg/groups/groups.go Outdated Show resolved Hide resolved
pkg/groups/groups.go Outdated Show resolved Hide resolved
pkg/groups/groups.go Outdated Show resolved Hide resolved
pkg/groups/groups_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@petedannemann petedannemann left a comment

Choose a reason for hiding this comment

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

I left one comment about renaming our public GetOffset function, but once that is fixed feel free to merge this. Nice work on this!

@@ -192,3 +192,27 @@ func ResetOffsets(
},
)
}

// getOffset gets earliest/latest offset for a given topic partition for resetting offsets of consumer group
func GetOffset(
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we rename this function to make it more clear that this only works with earliest/latest? I am slightly worried open source users will depend on this and this may cause confusion/headaches in the future

@SaiPrasanna9 SaiPrasanna9 merged commit 9fc691d into master Mar 27, 2023
@SaiPrasanna9 SaiPrasanna9 deleted the reset-soln-4 branch March 27, 2023 09:55
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