KAFKA-3840; Allow clients default OS buffer sizes#1507
KAFKA-3840; Allow clients default OS buffer sizes#1507slaunay wants to merge 3 commits intoapache:trunkfrom
Conversation
|
+1 |
|
Thanks for the PR. It would be good to add a unit test for this. |
|
At some point should we consider changing the default to -1 as well? |
|
👍 I believe the default My current workaround consists of setting I found that using The same applies to |
| config.put(ConsumerConfig.SEND_BUFFER_CONFIG, Selectable.USE_DEFAULT_BUFFER_SIZE); | ||
| config.put(ConsumerConfig.RECEIVE_BUFFER_CONFIG, Selectable.USE_DEFAULT_BUFFER_SIZE); | ||
| config.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, ByteArrayDeserializer.class); | ||
| config.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, ByteArrayDeserializer.class); |
There was a problem hiding this comment.
Nitpick: if you pass the deserializers via the constructor, it's a bit more concise. This applies to all tests.
|
Thanks for adding the tests. I left a few minor comments that should hopefully be easy to address. With regards to changing the default, it's worth starting a mailing list thread to get input from a wider group. |
- use concise constructor - remove exception message validation - move try/catch/fail into @test(expected = ...)
|
I did base the unit tests code on existing style from the neighbor tests but I changed it to |
|
Thanks, LGTM. |
|
Tests passed locally, merged to trunk. |
Follow up on KAFKA-724 (#1469) to allow OS socket buffer sizes auto tuning for both the broker and the clients.