Skip to content

v0.9.8

Latest

Choose a tag to compare

@zcalusic zcalusic released this 02 Nov 15:00
· 4 commits to master since this release
v0.9.8

Memcache gets a crash fix and now answers like memcached, and CI runs the functional tests against memcached too.

Upgrade notes

  • memcache cas is refused with more than one rack. Each replica's memcached numbers its items itself, so a cas could change only some replicas and leave them disagreeing. With more than one rack, Dynomite now answers cas with SERVER_ERROR and drops a cas noreply. With one rack, cas works as before. Under DC_SAFE_QUORUM and DC_EACH_SAFE_QUORUM, gets can 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) get ERROR. Empty lines and known commands without their arguments get CLIENT_ERROR bad command line format, as current memcached sends. In both cases the connection stays open. Before, Dynomite closed it.
  • memcache quit closes without a reply. It used to send +OK, which is Redis's reply. Redis QUIT still gets +OK.
  • Redis MGET without a quorum now answers Failed to achieve Quorum, the same as GET, instead of -ERR unknown: unknown.

Fixes

  • A memcache get or gets through any node outside the first rack crashed Dynomite, even with a single key.
  • A memcache get that 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, delete with its old time argument, and incr, decr or touch with a value that isn't a number.

Documentation

  • The README describes the memcached test coverage. It also notes that replicas can disagree after an incr or decr that 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 cover noreply, key and value limits, flags, incr/decr limits, 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 act runs 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