[
https://issues.apache.org/jira/browse/KAFKA-3170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15123499#comment-15123499
]
ASF GitHub Bot commented on KAFKA-3170:
---------------------------------------
GitHub user rajinisivaram opened a pull request:
https://github.com/apache/kafka/pull/832
KAFKA-3170: Set default fetch_min_bytes in new consumer to 1
Set default to 1 instead of 1024, this matches the existing doc and feels
like a better default value. Have run the unit tests with the change.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rajinisivaram/kafka KAFKA-3170
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/832.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #832
----
commit 7e9f944a61e331738ff7c9ed7ee93495039d697f
Author: Rajini Sivaram <[email protected]>
Date: 2016-01-29T13:47:08Z
KAFKA-3170: Set default fetch_min_bytes in new consumer to 1
----
> Default value of fetch_min_bytes in new consumer is 1024 while doc says it is
> 1
> -------------------------------------------------------------------------------
>
> Key: KAFKA-3170
> URL: https://issues.apache.org/jira/browse/KAFKA-3170
> Project: Kafka
> Issue Type: Bug
> Components: consumer
> Affects Versions: 0.9.0.0
> Reporter: Rajini Sivaram
> Assignee: Rajini Sivaram
>
> FETCH_MIN_BYTES_DOC says:
> {quote}
> The minimum amount of data the server should return for a fetch request. If
> insufficient data is available the request will wait for that much data to
> accumulate before answering the request. The default setting of 1 byte means
> that fetch requests are answered as soon as a single byte of data is
> available or the fetch request times out waiting for data to arrive. Setting
> this to something greater than 1 will cause the server to wait for larger
> amounts of data to accumulate which can improve server throughput a bit at
> the cost of some additional latency.
> {quote}
> But the default value is actually set to 1024. Either the doc or the value
> needs to be changed. Perhaps 1 is a better default?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)