Thanks for your quick reply!
Are there situations possible when a document does not get updated on client database?
I query data from local database with the following code:
public IEnumerable<InventoryItem> GetBorrowedItems()
{
// retrieve the document from the database
var query = CouchbaseDatabase.GetDb().CreateAllDocumentsQuery();
query.AllDocsMode = AllDocsMode.AllDocs;
var rows = query.Run();
List<InventoryItem> items = new List<InventoryItem>();
foreach (var row in rows)
{
Document doc = row.Document;
Debug.WriteLine("DOC name: " + doc.CurrentRevision.GetProperty("Name"));
Debug.WriteLine("DOC channels: " + doc.CurrentRevision.GetProperty("channels"));
Debug.WriteLine("DOC deleted: " + doc.Deleted);
Debug.WriteLine("DOC rev: " + doc.CurrentRevisionId);
InventoryItem item = FromDocument(doc);
items.Add(item);
}
return items;
}
Curiously, the RevisionID is still the same as in the old Document version (before I removed user2 from channels property) and user2 is still present in the channels property, I noticed while debugging with code above. In remote database there exists a newer revision where user2 has already been removed from channels property.
The log outputs from Console (Replication process) in my last posts cannot be the reason for this issue?