Browse Source
The introduction of KIP-480: Sticky Producer Partitioner had the side effect that generateAndProduceMessages can often write messages to a lower number of partitions to improve batching. testDescribeLogDirsRequest (and potentially other tests) relies on the messages being written somewhat uniformly to the topic partitions. We fix the issue by including a monotonically increasing key in the produced messages. I also included a couple of minor clean-ups I noticed while debugging the issue. The test failed very frequently when executed locally before the change and it passed 100 times consecutively after the change. Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>pull/7174/head
Ismael Juma
5 years ago
committed by
GitHub
3 changed files with 8 additions and 7 deletions
Loading…
Reference in new issue