Details
-
Task
-
Resolution: Done
-
Minor
-
None
-
None
Description
The max TTL for an item is applied incorrectly if the max TTL exceeds 30 days.
Instead of the max TTL being applied as an offset from the current time, it is instead applied as an offset from when memcached started.
Steps To Reproduce
1. Start up Couchbase Server on a single node (this is time t start).
2. Create a bucket with max TTL of 2592001 (30 days + 1 second).
3. Create a document in the bucket with no expiry, e.g. from the UI (this is time t doc).
4. Check the expiry (via couch_dbdump, the UI etc).
Expected Result
Document has expiry of t doc + 2592001.
Actual Result
Document has expiry of t start + 2592001, every single document created in this bucket (with no explicit expiry set) has the exact same expiry, no matter what time they were created.
Attachments
Issue Links
- relates to
-
MB-37643 Max TTL is incorrectly applied if it exceeds 30 days
- Closed