danieljoos / libkafka-asio

C++ Kafka Client Library using Boost Asio
MIT License
76 stars 40 forks source link

produce succeeds without producing (create topic related) #2

Closed DEvil0000 closed 9 years ago

DEvil0000 commented 9 years ago

precondition: topic "mytopic" not existing on the broker Produce TEST: run produce test.. result: success but the topic is still not existing and no message was produced..

Running MetadataRequest for "mytopic" before produce: first MetadataRequest creates the topic. after that the topic is created and we can produce to it and request metadata.

DEvil0000 commented 9 years ago

like in #3 request.set_required_acks(1); is the solution. maybe this should be default. can get closed