Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
memcached: prolong expiration time to be more tolerant
we have random test failures when testing `test_expiry_at_epoch_time`, where the client 1. sets an item with expiration time specified using epoch time of "now() + 1", and 2. lists to see if the item still exists but we found that sometimes, the item is gone when we list the cache, there are chances that * wall clock can be updated after the "set" command is sent, and the memcached "leaps" 1 second ahead, so it erases the item right away before the client lists it. * the client takes more than 1 second to get served by the memcached, this is unlikely, though. so, in this change, the expiry time is postponed to current + 2 second, in hope to be more tolerant, and hence to alleviate the issue caused by wall clock update and clock drift. Fixes #1476 Signed-off-by: Kefu Chai <kefu.chai@scylladb.com> Closes #1478
- Loading branch information