confluent-kafka-python icon indicating copy to clipboard operation
confluent-kafka-python copied to clipboard

Missing DeleteRecords equiv in AdminClient (KIP-107 method)

Open michaelandrepearce opened this issue 2 years ago • 7 comments

Description

deleteRecords equiv from Java does not seem to be exposed in AdminClient, on checking librdkafka it exists in the underlying C++ lib, just not exposed up in python wrapper. Please can it be exposed/added.

https://github.com/confluentinc/librdkafka/blob/master/examples/delete_records.c

How to reproduce

expecting to see method something like: admin.delete_records , but cannot find.

Checklist

Please provide the following information:

  • [1.9.2 ] confluent-kafka-python and librdkafka version (confluent_kafka.version() and confluent_kafka.libversion()):
  • [NA ] Apache Kafka broker version:
  • [NA ] Client configuration: {...}
  • [Windows/Linux ] Operating system:
  • [ NA] Provide client logs (with 'debug': '..' as necessary)
  • [ NA] Provide broker log excerpts
  • [no ] Critical issue

michaelandrepearce avatar Feb 02 '23 02:02 michaelandrepearce

Good find. We will add it to our backlog. Thanks.

pranavrth avatar Feb 02 '23 09:02 pranavrth

Any update here? we are a confluent customer.

michaelandrepearce avatar Aug 02 '23 15:08 michaelandrepearce

Great find. We are working on the Python Client Delete Records which is the equivalent of the above method. Will update this thread when the feature is merged.

mahajanadhitya avatar Aug 22 '23 08:08 mahajanadhitya

@mahajanadhitya just checking in if there is any update here?

michaelandrepearce avatar Sep 25 '23 07:09 michaelandrepearce

@mahajanadhitya is there any timeline?

michaelandrepearce avatar Oct 13 '23 20:10 michaelandrepearce

I join the question. For my current task, it is required to delete messages in the topic/partition in the python script.

strafer avatar Nov 27 '23 11:11 strafer

This is being worked upon and will be added as part of the upcoming release in late April. PR

pranavrth avatar Mar 19 '24 14:03 pranavrth

The PR is merged and will be available in v2.5.0.

pranavrth avatar Jul 09 '24 14:07 pranavrth