Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Ensure leader check for linearizable queries occurs after query is applied #283

Merged
merged 1 commit into from
Feb 23, 2017

Conversation

kuujo
Copy link
Member

@kuujo kuujo commented Feb 23, 2017

This PR fixes a bug in how LINEARIZABLE queries are handled. Currently, when a linearizable query is received by the leader, the leader heartbeats a majority of the cluster and then applies the query. The heartbeat should occur after the query is applied to the state machine to ensure that the leadership was not lost after the heartbeat was sent.

@kuujo kuujo added the bug label Feb 23, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 46.572% when pulling 04a8628 on linearizable-query-leader-check into b7b877e on master.

@kuujo kuujo merged commit 5c531c3 into master Feb 23, 2017
@kuujo kuujo deleted the linearizable-query-leader-check branch February 23, 2017 08:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants