silviucpp / erlkaf

Erlang kafka driver based on librdkafka
MIT License
83 stars 41 forks source link

Produce tombstones #51

Closed macasado86 closed 1 year ago

macasado86 commented 1 year ago

Hi,

I'm unable to produce tombstones (null messages) to kafka for a specified key in a compacted topic. I think the problem is that the producer is always expecting a value with a binary content and when an undefined atom arrives, the make_badarg method is invoked.

I would like to know if this is not supported or I'm missing something.

Thank you

silviucpp commented 1 year ago

You are right is not supported . It's very easy to add this. I will make a fix in the next days.

silviucpp commented 1 year ago

Please test on last master. The tombstones should be sent as undefined.

macasado86 commented 1 year ago

It works perfectly

Thank you very much!

silviucpp commented 1 year ago

You are welcome