Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-3643

[3.1.3 backport] Incorrect usage of PreserveExpiry with an expiry and no doc flags

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.1.3
    • 3.1.0, 3.1.2
    • SyncGateway
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              adamf Adam Fraser
              adamf Adam Fraser
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty