Details
-
Bug
-
Resolution: Fixed
-
Critical
-
3.1.0, 3.1.2
-
Security Level: Public
-
None
-
CBG Sprint 141
-
5
Description
It has been reported that SG 3.1.x is attempting to use PreserveExpiry with an expiry set and no document flags.
This is an invalid combination and results in the SDK returning the following error:
cannot use preserve expiry with expiry and no doc flags
|
2023-11-18T17:14:50.964-06:00 [WRN] c:[xxxx] db:xxxx Failed to update doc with xattr for key=<ud>xxxx</ud>, xattrKey=<ud>_sync</ud>: WriteCasWithXattr with key <ud>xxxx</ud>: cannot use preserve expiry with expiry and no doc flags: invalid argument -- base.WriteUpdateWithXattr() at collection_xattr_common.go:252
|
...
|
2023-11-18T17:14:50.965-06:00 [INF] Import: c:[xxxx] db:xxxx Error importing doc "<ud>xxxx</ud>": WriteCasWithXattr with key <ud>xxxx</ud>: cannot use preserve expiry with expiry and no doc flags: invalid argument
|
2023-11-18T17:14:50.965-06:00 [WRN] c:[xxxx] db:trandb Error from bh.handleChangesResponse: failed to GetRev for doc <ud>xxxx</ud> with rev 16-1bf546dcc713095b46678c17730db037: WriteCasWithXattr with key <ud>xxxx</ud>: cannot use preserve expiry with expiry and no doc flags: invalid argument -- db.(*blipHandler).sendBatchOfChanges.func1() at blip_handler.go:585
|
Attachments
Issue Links
- Clones
-
CBG-3612 Incorrect usage of PreserveExpiry with an expiry and no doc flags
- Closed