kafka-go
kafka-go copied to clipboard
Sending many messages
Describe the bug When I send a large number of messages via WriteMessages and if at least one of the messages is incorrect, then all subsequent messages in the list are rejected
Kafka Version 2.2.1, branch 0.4
To Reproduce
Expected behavior It is expected that an error message will appear in the logs, but the rest of the messages will be processed
Additional context I also studied the source code of the WriteMessages function, it requires significant improvements, this function contains 3 message processing loops, although you can get by with one, this problem becomes critical when you try to send a large number of messages (for example, 10000)
Hi @salakhovilia could you please provide a minimal reproducible example? Also what do you mean by "incorrect messages"?