I call the replace( document, PersistTo.MASTER , ReplicateTo.ONE) in my code , and it throws CASMismatchException sometimes, before adding a retry logic for the same , I would like to know ,
-
Is there a possibility that persisting in master is done and before doing replication CASMismatchException is throw in this scenario …?
-
Is there a possibility that , replication to any one node is done , and before doing persisting in master , this CASMismatchException is throw …?
In short , is there a possibility that , my ‘replace’ call is ended up in partial updates ( ended up before completing the operation ) …? or is the ‘replace’ call is idempotent and both persistence and replication is not done when the CASMismatchException is thrown …?
Am using CB server V3.0.1 community edition and java client sdk v2.1.