GitHub user kawamuray opened a pull request:
https://github.com/apache/kafka/pull/1146
KAFKA-3471: min.insync.replicas isn't respected when there's a delaying
follower who still in ISR
Ticket: https://issues.apache.org/jira/browse/KAFKA-3471
The number of followers which are already caught up until requiredOffset
should be used instead of high watermark to consider whether there are enough
number of replicas for a produce request.
Please see the ticket for the detail.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kawamuray/kafka issue/KAFKA-3471-minISR
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/1146.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 #1146
----
commit a784340b3876377894db25987659408779fec7dd
Author: Yuto Kawamura <[email protected]>
Date: 2016-03-26T17:14:36Z
KAFKA-3471: Add tests for Partition.checkEnoughReplicasReachOffset
At the moment of this commit, some of test cases fails but that is expected.
The next commit will follow up to fix checkEnoughReplicasReachOffset.
commit cc96ab952165afc4652ae628e5489c911b755ab6
Author: Yuto Kawamura <[email protected]>
Date: 2016-03-26T17:18:32Z
KAFKA-3471: Fix checkEnoughReplicasReachOffset to respect
min.insync.replicas
The number of followers which are already caught up until requiredOffset
should be
used instead of high watermark to consider whether there are enough number
of
replicas for a produce request.
Please see the ticket for the detail.
----
---
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.
---