Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.0.7
-
None
-
None
-
Couchbase Server Community Edition 6.5.1 build 6299
couchbase-java 3.0.7
couchbase-java-core 2.0.8
-
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
For Gerrit Dashboard: JCBC-1718 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
136892,4 | JCBC-1718 Incorrect interpretation of the "expiry". | master | couchbase-jvm-clients | Status: MERGED | +2 | +1 |
136938,2 | Gardening: add expiry tests for insert, replace, touch, & getAndTouch | master | couchbase-jvm-clients | Status: MERGED | +2 | +1 |
137249,2 | JCBC-1718 Incorrect interpretation of the "expiry". | colossus | couchbase-jvm-clients | Status: MERGED | +2 | +1 |
137250,2 | Gardening: add expiry tests for insert, replace, touch, & getAndTouch | colossus | couchbase-jvm-clients | Status: MERGED | +2 | +1 |