Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve subscriptions during ZooKeeper failover (fixes #26) #30

Merged
merged 6 commits into from
Oct 1, 2015

Conversation

horkhe
Copy link
Member

@horkhe horkhe commented Sep 30, 2015

It was found in production that when a ZooKeeper leader dies, Kafka-Pixy loses all claims for partitions that it made, but keeps consuming them and committing offsets. However the first Kafka-Pixy instance started after failover will see that no partitions are claimed, claim them all and start consuming messages and committing offsets for partitions that are still owned by other instances, resulting in duplicate consumption.

Investigation revealed that the reason for that is an issue with samuel/go-zookeeper library. The issue was fixed in the mailgun clone of that library. This change switches to use the mailgun/go-zookeeper clone of the library while a PR against upstream is pending.

EDIT: The PR against go-zookeeper has been accepted, but I decided to keep dependency on the mailgun clone for the time being in case we need to fix something else.

@horkhe horkhe force-pushed the maxim/develop branch 2 times, most recently from 4567656 to eeaada1 Compare September 30, 2015 23:23
horkhe added a commit that referenced this pull request Oct 1, 2015
Preserve subscriptions during ZooKeeper failover (fixes #26)
@horkhe horkhe merged commit d3c7860 into master Oct 1, 2015
@anton-efimenko
Copy link

lgtm

@horkhe horkhe added this to the v0.8.0 milestone Oct 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants