Description
Steps to reproduce
- Create a counter
cbc-incr -Ucouchbase://localhost/default id --initial 0 --delta 1 -e 600 -u Administrator -P password
- Note the expiry in the UI
- Update the counter
cbc-incr -Ucouchbase://localhost/default id --initial 5 --delta 1 -e 600 -u Administrator -P password
- Note the expiry in the UI
Problem
The expiry should not have changed on update. In previous versions of Couchbase Server the TTL for incur/decur operations is only set when the counter was created and not when it was updated.
Expectation
For Spock to behaviour like previous versions of Couchbase Server
Attachments
Issue Links
- is duplicated by
-
MB-25137 Subdoc $document.exptime returns invalid time
- Closed
For Gerrit Dashboard: MB-25402 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
81405,4 | MB-25402: Keep backwards compatibility for incr/decr expiry | spock | kv_engine | Status: MERGED | +2 | +1 |
81465,1 | Merge remote-tracking branch 'couchbase/spock' | master | kv_engine | Status: MERGED | +2 | +1 |
81841,3 | MB-25402: Fix conversion of expiration times | spock | kv_engine | Status: MERGED | +2 | +1 |
81964,1 | Merge remote-tracking branch 'couchbase/spock' | master | kv_engine | Status: ABANDONED | 0 | -1 |
81968,1 | Merge remote-tracking branch 'couchbase/spock' | master | kv_engine | Status: MERGED | +2 | +1 |