Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1718

Incorrect interpretation of the "expiry".

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.7
    • Fix Version/s: 3.0.9
    • Component/s: None
    • Labels:
      None
    • Environment:
      Couchbase Server Community Edition 6.5.1 build 6299
      couchbase-java 3.0.7
      couchbase-java-core 2.0.8
    • Story Points:
      1

      Description

      Java SDK has two kinds of functions. The first functions accepts expiry as CommonDurabilityOptions, the second functions as an simple Duration object.
      When I call collection.upsert() with UpsertOptions.upsertOptions().expiry(duration) then for the duration less than 30 days the value is interpreted as an offset and in other case as a absolute time stamp.
      But when I call collection.touch() or collection.getAndTouch() with an offset more than 30 days Couchbase immediaely deletes the document.

      I have a test for the problem and it demonstrates this odd behaviour.

        Attachments

          Issue Links

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

            Activity

            There are no comments yet on this issue.

              People

              Assignee:
              david.nault David Nault
              Reporter:
              saltos Alexey Saltanov
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes

                    PagerDuty