Richard Joerger created KAFKA-13931:
---------------------------------------
Summary: Add Integration tests for the `DeleteRecordsCommand` class
Key: KAFKA-13931
URL: https://issues.apache.org/jira/browse/KAFKA-13931
Project: Kafka
Issue Type: Improvement
Components: tools
Reporter: Richard Joerger
KAFKA-13716 was made to add additional tests which cover the
DeleteRecordsCommand. In discussions on the
[PR|[https://github.com/apache/kafka/pull/12167],] it was agreed that we would
keep the scope of KAFKA-13716 to unit tests. The rationale being, the
MockAdminClient (which would need to be used to do the integration test) does
not have the necessary elements implemented. The most immediate to me is that
the MockAdminClient.deleteRecords() method is not completely implemented. It
will only "delete" records if the topic is empty but will otherwise throw a
"UnsupportedOperationException" due to the lack of implementation.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)