-
Notifications
You must be signed in to change notification settings - Fork 257
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 delete records admin client api #531
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Code looks about right, but needs a test case to be mergeable.
Sure, I'll add a test. |
@benesch Added tests for the delete records api. |
@benesch Can you please take a look at the PR. Thanks. |
tests/test_admin.rs
Outdated
let res = admin_client.delete_records(&offsets, &opts).await; | ||
assert_eq!(res, Err(KafkaError::AdminOp(RDKafkaErrorCode::NoEnt))); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is too much code to duplicate to test this feature. Could you instead work the delete_records
bit into test_topics
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benesch Updated tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benesch any update on the review?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @benesch is there anything I can do to help merge this?
Hi! Any plans to merge it? |
Hey @davidblewett! Just wanted to give you a heads-up that there were some updates to address @benesch's initial feedback on the PR. Totally understand that life gets busy and everyone has their own commitments. If you find a moment to review and potentially merge it, it would be a fantastic help. Thanks a ton! |
This PR adds bindings to the delete records c API.