Merge pull request #26557 from jroper/clarify-read-write-local

Clarified the failure conditions for Read/WriteLocal
This commit is contained in:
Patrik Nordwall 2019-03-20 14:21:30 +01:00 committed by GitHub
commit 532c204e29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,6 +212,10 @@ from other nodes might not be visible yet.
When using @scala[`WriteLocal`]@java[`writeLocal`] the update is only written to the local replica and then disseminated
in the background with the gossip protocol, which can take few seconds to spread to all nodes.
When using `ReadLocal`, you will never receive a `GetFailure` response, since the local replica is always available to
local readers. `WriteLocal` however may still reply with `UpdateFailure` messages, in the event that the `modify` function
threw an exception, or, if using durable storage, if storing failed.
`WriteAll` and `ReadAll` is the strongest consistency level, but also the slowest and with
lowest availability. For example, it is enough that one node is unavailable for a `Get` request
and you will not receive the value.