I am using Couchbase-Java SDK 2.7.1 and trying to perform bulk subdoc operation on the set of document keys. The below code is not throwing any error but the documents aren't getting updated after the execution of the given code.
/*
Document structure:
{
"key1": "",
"key2:: ""
}
*/
List<String> docIds = new ArrayList<String>();
docIds.add("mydoc-1");
docIds.add("mydoc-2");
String docPath = "key1";
String value = "myVal";
Observable<String> docIdsObs = Observable.from(docIds);
Observable<DocumentFragment<Mutation>>
subdocAppendObs =
docIdsObs.flatMap(docId -> this.subdocUpsert(bucket, docId, docPath, value,
persist, replicate, timeout,
timeunit));