You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the sequence of steps necessary to successfully create, index, or delete a document on both the primary and any replica shards:
The client sends a create, index, or delete request to Node 1.
The node uses the document’s _id to determine that the document belongs to shard 0. It forwards the request to Node 3, where the primary copy of shard 0 is currently allocated.
Node 3 executes the request on the primary shard. If it is successful, it forwards the request in parallel to the replica shards on Node 1 and Node 2. Once all of the replica shards report success, Node 3 reports success to the coordinating node, which reports success to the client.
However according to the latest resiliency talk from Elastic{ON} 2016, this is not the case, otherwise #7572 would not happen. According to the presenter (and the comment in the issue), the actual situation is as follows:
Primary shard receives indexing request
Primary shard checks that all/quorum replicas are online and fails request otherwise
Primary shard performs index operation on itself
Primary shard acks success to the client
Primary shard sends indexing request to replicas
The documentation is very misleading making a reader to believe that by the time he gets ack, its data already exists on all/quorum replicas, i.e. safe; and that's not the case.
I think that this behavior should be clearly outlined, until this issue is fixed in 5.x, both in the guide link above and in the reference.
The text was updated successfully, but these errors were encountered:
We're aware of a number of issues with the definitive guide, which wasn't updated for 2.x. Unfortunately, this is just one exampke of quite a number of pages in that book which are not accurate currently. So we're actively in the process of rewriting it, as noted at the top of all pages in that guide. Thanks for pointing this one out specifically.
Will it help if I submit pull request that clarifies the issue?
On 25 Feb 2016 8:31 pm, "Shane Connelly" notifications@github.com wrote:
We're aware of a number of issues with the definitive guide, which wasn't
updated for 2.x. Unfortunately, this is just one exampke of quite a number
of pages in that book which are not accurate currently. So we're actively
in the process of rewriting it, as noted at the top of all pages in that
guide. Thanks for pointing this one out specifically.
—
Reply to this email directly or view it on GitHub #16728 (comment)
.
The guide says:
However according to the latest resiliency talk from Elastic{ON} 2016, this is not the case, otherwise #7572 would not happen. According to the presenter (and the comment in the issue), the actual situation is as follows:
The documentation is very misleading making a reader to believe that by the time he gets ack, its data already exists on all/quorum replicas, i.e. safe; and that's not the case.
I think that this behavior should be clearly outlined, until this issue is fixed in 5.x, both in the guide link above and in the reference.
The text was updated successfully, but these errors were encountered: