Tomasz Kaszuba created KAFKA-14333:
--------------------------------------
Summary: Kafka Admin delete records java doc is missing
information about supported cleanup.policy
Key: KAFKA-14333
URL: https://issues.apache.org/jira/browse/KAFKA-14333
Project: Kafka
Issue Type: Bug
Components: admin
Affects Versions: 3.3.1
Reporter: Tomasz Kaszuba
The deleteRecords command on the KafkaAdminClient will throw an exception if
the cleanup.policy on a topic is not set to delete, yet this is not mentioned
in the java doc.
[https://github.com/apache/kafka/blob/968e18cc799faa6b2b5f94e4f376bc768895afd2/core/src/main/scala/kafka/cluster/Partition.scala#L1241-L1242]
+Java Doc
+
[https://kafka.apache.org/33/javadoc/org/apache/kafka/clients/admin/KafkaAdminClient.html#deleteRecords-java.util.Map-org.apache.kafka.clients.admin.DeleteRecordsOptions-]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)