Repository navigation
Memcache gets a crash fix and now answers like memcached, and CI runs the functional tests against memcached too.
Upgrade notes
- memcache
casis refused with more than one rack. Each replica's memcached numbers its items itself, so acascould change only some replicas and leave them disagreeing. With more than one rack, Dynomite now answerscaswithSERVER_ERRORand drops acas noreply. With one rack,casworks as before. UnderDC_SAFE_QUORUMandDC_EACH_SAFE_QUORUM,getscan fail when the replicas' cas uniques differ. - Memcache errors no longer close the connection. Unknown or unsupported commands (
gat,stats,flush_all,version, meta commands, upper-case commands) getERROR. Empty lines and known commands without their arguments getCLIENT_ERROR bad command line format, as current memcached sends. In both cases the connection stays open. Before, Dynomite closed it. - memcache
quitcloses without a reply. It used to send+OK, which is Redis's reply. RedisQUITstill gets+OK. - Redis
MGETwithout a quorum now answersFailed to achieve Quorum, the same asGET, instead of-ERR unknown: unknown.
Fixes
- A memcache
getorgetsthrough any node outside the first rack crashed Dynomite, even with a single key. - A memcache
getthat failed in part (for example, no quorum) closed the client's connection with no reply, and the requests after it were lost. It now returns the error, and the connection goes on. - Memcache syntax that memcached accepts no longer closes the connection: a negative expiry,
deletewith its old time argument, andincr,decrortouchwith a value that isn't a number.
Documentation
- The README describes the memcached test coverage. It also notes that replicas can disagree after an
incrordecrthat makes the number shorter, because memcached only sometimes pads the result with spaces.
Testing
- The functional tests can run against memcached (
DYN_TEST_DATASTORE=memcache). They compare replies byte for byte with a standalone memcached's and covernoreply, key and value limits, flags,incr/decrlimits, expiry, hash tags and pipelining. CI runs them against memcached 1.6.45. - The Valkey and Redis matrix now tests only their latest releases, so CI has 8 functional test jobs instead of 16.
- Local
actruns can use their own container image (CI_IMAGE), which cuts a full local run from about 6 minutes to 160 s. GitHub runs are unchanged.
Full Changelog: v0.9.7...v0.9.8