rust-rdkafka icon indicating copy to clipboard operation
rust-rdkafka copied to clipboard

0.37.0 is having issues with topic deletion

Open DoumanAsh opened this issue 1 year ago • 3 comments

Using current latest version 0.37.0 of bindings I see issue with deliting existing topic It seems rdkafka is waiting for something to happen while topic is being deleted:

cargo/registry/src/index.crates.io-6f17d22bba15001f/rdkafka-0.37.0/src/client.rs:80} - librdkafka: PARTCNT [thrd:main]: Topic status_test partition count changed from 1 to 0

Even though I can see kafka itself reporting that topic has been deleted successfully It is currently not clear what changed since 2.3.0's librdkafka, but at least curent librdkafka used in bindings has admin client broken

DoumanAsh avatar Dec 30 '24 08:12 DoumanAsh

Using librdkafka 2.6.1 resolves this issue

DoumanAsh avatar Dec 30 '24 08:12 DoumanAsh

Actually nevermind that I tried to use master branch of this repo, and it works without issues... So there might be something wrong with currently published version of rdkafka crate?

DoumanAsh avatar Dec 30 '24 08:12 DoumanAsh

Did re-test today properly

Current version 0.37.0 using librdkafka 2.3.0 is having issue with exiting topic deletion function Updating librdkafka to 2.4.0 fixes it

librdkafka v2.8.0 also doesn't have issue

Looking at changelog I do not see any particular reason but it is what it is

Method in question: https://docs.rs/rdkafka/0.37.0/rdkafka/admin/struct.AdminClient.html#method.delete_topics

C function under impact: rd_kafka_DeleteTopics

DoumanAsh avatar Jan 15 '25 02:01 DoumanAsh