Details
-
Bug
-
Resolution: Fixed
-
Major
-
Cheshire-Cat
-
Untriaged
-
1
-
Unknown
Description
The test is:
collection.upsert(docId, initial);
|
|
TransactionResult r = transactions.run((ctx) -> {
|
TransactionGetResult gr = ctx.get(collection, docId);
|
|
QueryResult qr = ctx.query("DELETE FROM `default` WHERE META().id = '" + docId + "'"); |
|
ctx.remove(gr);
|
});
|
So:
- Get an existing document with KV.
- Delete that same document with query.
- Remove that document with KV, with txdata:
{"scas":"1604575189310177280","kv":true} |
This removal returns no errors. With KV this should return a "document not found" type error.
(If I put the ctx.get after the ctx.query, then the ctx.get does fail with 17014 "document not found" as I'd expect).