Details
Description
Document flags are reset on n1ql update even in case of a failure.
Steps to reproduce:
Create a document using python sdk with pickle serialization
ok = cb.set('odwalla-juice1',
, format=FMT_PICKLE)
is created with CAS=0xd21547caea13, Flags=0x1000001
using cbq
UPDATE default USE KEYS "odwalla-juice1" SET type="product-juice" RETURNING default.type;
This fails as the document was serialized with "msg": "Unable to SET path (`default`.`type`)"
On retrieving the document using sdk
item = cb.get('odwalla-juice1')
print(item)
ValueResult<RC=0x0, Key=u'odwalla-juice1', Value=u'KGRwMApTJ3R5cGUnCnAxClMnanVpY2UnCnAyCnMu', CAS=0xe4f951caea13, Flags=0x0>
sdk is not able to deserialize the document as the flags were reset
Attachments
Issue Links
- relates to
-
MB-15950 N1QL DML is not preserving expiration set by the SDK
- Closed
For Gerrit Dashboard: MB-15442 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
52731,2 | MB-15442. CAS API that accepts flags and expiry | master | go-couchbase | Status: MERGED | +2 | +1 |
52732,3 | MB-15442: Provide an interface to set/cas flags | master | go-couchbase | Status: MERGED | +2 | +1 |
52733,4 | MB-15442: Use flags value obtained from bulkGet in update Corresponding go-couchbase reviews : http://review.couchbase.org/52732 http://review.couchbase.org/52731 Change-Id: I0b6cf43799573df0aa7a10e7479feebe54f3d167 Reviewed-on: http://review.couchbase.org/52733 Reviewed-by: Gerald Sangudi <gerald@couchbase.com> Tested-by: Manik Taneja <manik@couchbase.com> | master | query | Status: MERGED | +2 | +1 |