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

rpk: small improvements for rpk-trim #11957

Merged
merged 3 commits into from
Jul 7, 2023

Conversation

r-vasquez
Copy link
Contributor

This PR:

  • Adds a new line in an rpk decommission command.
  • Improve error handling for non-existent topics.
  • Exit 1 if there was at least an error in the topics that you tried to trim.

Backports Required

  • none - issue does not exist in previous branches

Release Notes

  • none

Possibly the topic does not exists.
- Exit with 1 when there is an error in any of the
  columns.
- Better error message, when the user try to trim
  a non-existent topic
printDeleteRecordResponse(drr)
ok := printDeleteRecordResponse(drr)
if !ok { // This means that at least 1 row contained an error.
os.Exit(1)
Copy link
Contributor

Choose a reason for hiding this comment

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

not out.Die?

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 just to exit with code 1, we won't print any message since it's already in the table created by printDeleteRecordResponse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants