Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
6.5.0
-
CB 6.5.0 on RHEL 7.7
-
Untriaged
-
Centos 64-bit
-
1
-
Unknown
Description
I wrote a simple Java App to test out the ACID Transactions. It is based on the Transfer.java sample app provided by Couchbase. In the app, I start a Transaction and insert a configurable number of documents as one unit of work before committing them.
I see a strange behavior while inserting docs into a bucket. I can see docs in the bucket via console and query them using N1QL before they are committed. The docs have an empty body but have the expected meta().id. This happens for all scan consistencies. I see the full doc with its contents after commit. But being able to get a doc back before commit and that too an empty doc is bizarre and honestly unacceptable!
select *, meta().id from source use keys ["doc::1","doc::200","doc::1500"]; |
[{"id":"doc::1","source":{}},{"id":"doc::200","source":{}},{"id":"doc::1500","source":{}}] |