- 2 node cluster, couchbase bucket(replica=1)
- Stop memcached on replica node
- INSERT a new doc into the bucket with timeout=60seconds using client-1 with durability=MAJORITY
- Try REPLACE of same doc from client-2
Client-2 gets 'RequestCancelledException' with reason 'KV_SYNC_WRITE_IN_PROGRESS' for the replace request.
Client-2 should get 'DocumentNotFoundException' since the replace is supposed to get the committed document from the bucket.
Since client-1 sync_write is still in progress, the document should not be exposed to client-2's replace request.
Currently DELETE over uncommitted document will get 'DocumentNotFoundException'