brod icon indicating copy to clipboard operation
brod copied to clipboard

call get_partitions_count with checking allow_topic_auto_creation option

Open dbegunkov opened this issue 3 years ago • 1 comments

dbegunkov avatar Sep 21 '22 19:09 dbegunkov

The fix solveds problem with autocreation topics when we call method brod:get_partitions_count/2, if the flag of config allow_topic_auto_creation = false. For example, when we using kaffe lib (https://github.com/spreedly/kaffe), we call method Kaffe.Producer. produce /3, that called method :brod.brod:get_partitions_count/2, to calculate needed partition.

dbegunkov avatar Sep 21 '22 19:09 dbegunkov

Hi @dbegunkov Thank you for the PR. I have it covered here: https://github.com/kafka4beam/brod/pull/541 Made brod_client to cache the the unknown_top_partition result.

zmstone avatar Nov 27 '22 14:11 zmstone

Thank for your fix this problem!

dbegunkov avatar Nov 29 '22 16:11 dbegunkov

released in 3.16.5

zmstone avatar Dec 05 '22 19:12 zmstone