GitHub user amethystic opened a pull request:
https://github.com/apache/kafka/pull/2304
kafka-4576: Log segments close to max size break on fetch
JVM spec does not make a guarantee that the buffer will be filled up when
invoking FileChannel.read, which is called in searchOffsetWithSize to fail the
follower replicas' reading data from leader when large log segment is set.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/amethystic/kafka kafka4576_FileChannel_read
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/2304.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 #2304
----
commit f32fe29a3da730444c9ed303dd69650df51529aa
Author: huxi <[email protected]>
Date: 2017-01-04T03:36:05Z
kafka-4576: Log segments close to max size break on fetch
JVM spec does not make a guarantee that the buffer will be filled up when
invoking FileChannel.read, which is called in searchOffsetWithSize to fail the
follower replicas' reading data from leader when large log segment is set.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---