Concurrent writes, kv vs tx

Of course, but I’m interested in concurrent writes with non-tx vs tx, specifically.

I thought about that, but it is impractical.

Yes, but again, I’m interested specifically in transactions.

I’ve already tried that exact sequence.
The result is : the tx throws and the document content is the one from O.
Which makes sense, because the tx uses the cas, so the replace fails.

I think it’s more likely that an overwrite happens during the unstaging phase.
The unstaging probably doesn’t check for cas when swapping the content from xattr to the document body. The tx cannot be rollback at this point anyway, so checking for the cas would be quite irrelevant. WDYT ?