While we are studying the XDCR features 7.6 , there is point mention to xdcr replication on xattr field. But when we check in CB UI as shown below it is coming under metadata section and we can not edit it manually. So I had two question on xattr .
What is the significance of this field.
How we can populate value so that we can test XDCR on this field.
Xattr is “extended attributes”. They are storoed as along with the other metadata for the document along withr the document key. They are separate from the document data.
They can be set and accessed using the subdoc kv api (mutateIn method), by using xattr()
List<MutateInSpec> mutations = new ArrayList<>();
mutations.add(MutateInSpec.upsert("property1.last_modified", System.currentTimeMillis()).createPath().xattr());
collection.mutateIn("testKey::1234" ,mutations);
mutations = new ArrayList<>();
mutations.add(MutateInSpec.upsert("property2.last_modified", System.currentTimeMillis()).createPath().xattr());
collection.mutateIn("testKey::1234" ,mutations);