patriknw / akka-data-replication

Replication of CRDTs in Akka Cluster
Other
216 stars 18 forks source link

Abort Update if specified readConsistency fails #50

Closed patriknw closed 9 years ago

patriknw commented 9 years ago

When using Update with readConsistency != ReadOne and Get fails the Update should not continue, as is done now.

I must investigate if we need to support current behavior also.

From docs:

If readConsistency != ReadOne it will first retrieve the data from other nodes and then apply the modify function with the latest data. If the read fails the update will continue anyway, using the local value of the data. To support "read your own writes" all incoming commands for this key will be buffered until the read is completed and the function has been applied.