couchbaselabs / couchbaselabs/Linq2Couchbase

Unable to save document edited during ChangeTracking

Open
#174 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
98
Forks
50
PR merge metrics
No merged PRs in 30d

Description

This integration test fails:
BucketContextTests.SubmitChanges_WhenDocsAreModified_DocumentIsMutated
with the error:
Couchbase.Linq.CouchbaseConsistencyException : Data exists for key

The test enables ChangeTracking, retrieves and updates a document then calls SubmitChanges(). This should update the stored document, but is instead throwing CouchbaseConsistencyException which indicates the result's status was "KeyExists". See [here](https://github.com/couchbaselabs/Linq2Couchbase/blob/master/Src/Couchbase.Linq/BucketContext.cs#L314).

I don't think a KeyExists response code should be interpreted as consistency issue.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.