Valkey 8.1 release notes ======================== Upgrade urgency levels: | Level | Meaning | |----------|---------------------------------------------------------------------| | LOW | No need to upgrade unless there are new features you want to use. | | MODERATE | Program an upgrade of the server, but it's not urgent. | | HIGH | There is a critical bug that may affect a subset of users. Upgrade! | | CRITICAL | There is a critical bug affecting MOST USERS. Upgrade ASAP. | | SECURITY | There are security fixes in the release. | Valkey 8.1.12 - Released Wed 18 November 2026 ----------------------------------------------- Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible. ### Security Fixes * CVE-2026-130822: Fix a use-after-free crash in client eviction when maxmemory-clients is enabled by @nadav-levanoni (#5435) ### Bug Fixes * Fix a server crash when a key name of 2 GiB or more is sampled for eviction, and incorrect comparison of strings of 2 GiB or more by @madolson (#5133) * Correct command metadata to describe the `ZINCRBY` increment and `ZINTER`/`ZINTERSTORE`/`ZUNION`/`ZUNIONSTORE` weights as doubles instead of integers by @sarthakaggarwal97 (#5210) * Propagate `PFADD` elements applied before a corrupted-HLL INVALIDOBJ error so replicas and the AOF stay consistent with the primary by @madolson (#5128) * Fix a server panic when a Lua script returns or raises an error table whose metatable has an `__index` metamethod that raises an error by @madolson (#5118) * Mark the `RESTORE` and `RESTORE-ASKING` `IDLETIME` and `FREQ` options as mutually exclusive in command metadata by @sarthakaggarwal97 (#5212) * Fix a memory leak when `server.register_function` named arguments are repeated in a different letter case by @madolson (#5120) * Fix a server crash when a module never sets a postponed reply length; the leftover placeholder is now filled with an empty array by @madolson (#5159) * Fix quadratic slowdown in `HRANDFIELD` and `SRANDMEMBER` with counts on collections whose elements differ only in letter case by @madolson (#5167) * Fix a crash in a cluster replica whose primary was removed from the nodes table when another primary claims an unassigned slot by @madolson (#5184) * Fix `SCRIPT KILL` and `FUNCTION KILL` not stopping Lua scripts that loop inside nested coroutines, and script timeouts not being detected when work is spread across coroutines by @madolson (#5108) * Fix an out-of-bounds write in `PFADD` and `PFMERGE` on a corrupted sparse HyperLogLog ending in a truncated XZERO opcode by rejecting it as invalid by @madolson (#5124) * Fix a server abort in `PFADD` and `PFMERGE` on short sparse HyperLogLogs when `hll-sparse-max-bytes` is set to 31 or less by @madolson (#5138) * Fix a server crash in `SORT` and `SORT_RO` with `BY` or `GET` patterns when an element is 2 GiB or larger by @madolson (#5146) * Fix `ValkeyModule_Calloc` and `ValkeyModule_TryCalloc` returning an undersized buffer when `nmemb * size` overflows by @madolson (#5155) * Fix `ValkeyModule_CallReplyAttributeElement` always returning an error on RESP3 attribute replies by @madolson (#5157) * Fix `EXEC` succeeding after a key that was already expired at `WATCH` time is overwritten, which can happen on replicas by @madolson (#5169) * Correct expiry command metadata to show that `XX` can be combined with `GT` or `LT`, rather than all four conditions being mutually exclusive by @sarthakaggarwal97 (#5213) * Fix `PFMERGE` with no source keys bypassing ACL key permissions and failing in `COMMAND GETKEYS`, and a crash in module commands whose keynum key spec starts past the last argument by @madolson (#5087) * Fix a memory leak when a script or module command is refused by ACL while the ACL log is disabled with `acllog-max-len 0` by @madolson (#5162) * Fix a crash on the first `FUNCTION LOAD` after startup when the shebang engine name contains a NUL byte by @madolson (#5115) * Fix `FCALL` errors or a crash when `FUNCTION FLUSH SYNC` runs before the lazy free triggered by `FUNCTION RESTORE` of more than 64 functions has completed by @madolson (#5105) * Fix `notify-keyspace-events` dropping the `n` (new key) flag from `CONFIG GET` and `CONFIG REWRITE` when `A` is also set by @pirate329 (#5199) * Fix a cluster node failing to restart with an assertion after a gossip entry carrying the MYSELF flag adds a second myself node to nodes.conf by @madolson (#5134) * Fix `ACL LOAD` not disconnecting default user clients subscribed to channels the reloaded rules no longer allow by @madolson (#5085) * Fix long stalls in `ZRANDMEMBER`, `SRANDMEMBER`, `SPOP` and `HRANDFIELD` on a small key left over from a much larger one while its hashtable shrinks by @madolson (#5170) * Fix a crash in active defrag when a database's keyspace is replaced mid-scan by `FLUSHDB ASYNC`, `FLUSHALL ASYNC`, `SWAPDB` or a replica's flush before full sync by @taham0 (#4968) * Allow modules to block RESP3 clients that are subscribed to Pub/Sub channels instead of failing `ValkeyModule_BlockClient` with ENOTSUP by @quanyeyang (#4863) * Bound the time spent per cycle evicting keys from the client tracking table, avoiding long stalls after lowering `tracking-table-max-keys` by @tanmayBeginsJourney (#4775) * Fix a memory leak in `ValkeyModule_GetCommandKeysWithFlags` when introspecting commands with large key lists by @christopherlim98 (#5046) * Correct `SENTINEL SIMULATE-FAILURE` metadata so `COMMAND DOCS` shows the required mode argument and its tokens by @sarthakaggarwal97 (#5208) * Fix a TLS busy loop that consumed 100% CPU when a connection's read or write handler was removed while OpenSSL was waiting for the opposite event by @yairgott (#3510) * Fix a crash caused by a NULL pointer dereference when all timer events in an event loop are pending deletion by @royenheart (#4351) * Fix a node staying stuck in PFAIL when its PING is lost while the peer's own traffic keeps the cluster link alive by @enjoy-binbin (#4171) * Fix `SORT` key extraction so a `STORE` destination named like an option can no longer bypass ACL checks and write to an unauthorized key by @madolson (#4665) * Fix `GEOSEARCH` returning empty results for exact zero-distance matches on builds where floating-point contraction breaks the latitude distance calculation by @Baraa-Hasheesh (#4777) * Fix a crash when a replication role change command such as `REPLICAOF` or `CLUSTER REPLICATE` arrives over a replication link by @madolson (#5187) * Fix `XADD` rejected for oversized elements leaving behind an empty stream key on the primary that is never replicated or written to the AOF by @madolson (#5178) * Redact credentials of rejected `HELLO`, `AUTH` and `MIGRATE` commands so passwords no longer leak to MONITOR and the commandlog by @madolson (#5180) * Fix an assertion crash on 64-bit builds when `LSET` merges list nodes whose combined size exceeds 4GB, reachable through a crafted `RESTORE` payload by @madolson (#5163) * Ignore invalid ping extension values from cluster peers that would corrupt nodes.conf and prevent the node from restarting by @madolson (#5137) * Prevent a replica crash when the primary wrongly replies +CONTINUE to a full resync request; the replica now drops the link and retries by @madolson (#5126) * Bound the bytes the cluster bus reads per event so a peer with a constant read backlog cannot starve clients, cron and heartbeats by @madolson (#5161) * Fail `CONFIG REWRITE` when the old config file reads short instead of writing uninitialized memory into the new config file by @madolson (#5158) * Restore acceptance of hexadecimal floats (such as `0x10`) in sorted set score ranges and `SORT` when built with `USE_FAST_FLOAT=yes` by @quanyeyang (#4875) * Reclaim client-side caching tracking table entries left by disconnected clients, fixing a memory leak under read-heavy workloads, and include the tracking table in active defrag by @rayjinghaolei (#4190) * Correct `ZADD` and `LCS` metadata so `COMMAND DOCS` and valkey-cli hints no longer present `NX` with `GT`/`LT` or `LEN` with `IDX` as valid combinations by @rainsupreme (#5244) * Fix a Sentinel crash when a monitored replica's `INFO` reply contains no `master_host` by @smkher (#4929) * Fix a use-after-free in streams when `XADD` creates a new node, which could leave a dangling pointer hit by later reads such as `XRANGE` by @Baraa-Hasheesh (#4711) * Reject inbound cluster bus packets larger than 16MB, except Pub/Sub and module messages, so a peer cannot make a node buffer up to 4GB from a single header by @madolson (#5065) * Fix `XINFO GROUPS` and `XINFO STREAM ... FULL` reporting too-high consumer group lag after `XTRIM` or a trimming `XADD` removes unread entries by @Sasidharan3094 (#4983) * Fix AOF load failure after a crash leaves a torn annotation at the end of the file; it is now treated as a short read and can be truncated by `aof-load-truncated` or `valkey-check-aof --fix` by @sumitk163 (#5349) * Correct the `SENTINEL GET-PRIMARY-ADDR-BY-NAME` reply schema to allow the null reply returned for an unknown primary name by @rainsupreme (#5246) * Fix a crash after `REPLICAOF NO ONE` with TLS and a connection leak after `REPLICAOF` to a new primary when the old primary client is freed asynchronously due to pending I/O by @yaronsananes (#3719) Valkey 8.1.11 - Released Mon 26 October 2026 ---------------------------------------------- Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible. ### Security Fixes * GHSA-f4q9-j22m-xqq9: Fix a heap buffer overflow in cluster Pub/Sub message construction that could allow an authenticated client to potentially execute arbitrary code by publishing an oversized message by @roshkhatri (#5030) ### Bug Fixes * Fix stream commands that mutate consumer-group or PEL state (`XGROUP`, `XSETID`, `XREADGROUP`, `XACK`, `XCLAIM`, `XAUTOCLAIM`) not triggering `WATCH` and client-side tracking invalidation by @Tarte12 (#3459) * Fix a server crash when module timer callbacks or thread-safe contexts attempt writes while writes are paused by `CLIENT PAUSE WRITE` or `CLUSTER FAILOVER`; such module writes are now rejected by @smkher (#3645) * Fix a server abort on a RESTORE payload declaring a string length that overflows the allocation size; such payloads are now rejected as bad data by @enjoy-binbin (#4733) * Fix ZINTER/ZINTERSTORE returning input-order-dependent scores when a weighted term is 0*inf; a NaN weighted score now counts as 0, matching ZUNION by @leomurillo (#4997) * Correct `ValkeyModule_FreeModuleUser`, `ValkeyModule_ACLAddLogEntry` and `ValkeyModule_ACLAddLogEntryByUserName` declarations to return int as implemented, fixing undefined behavior on targets with strict call signature checks by @rainsupreme (#4676) * Fix a huge memory allocation when a command such as COMMAND GETKEYS EVAL declares a far larger key count than the arguments provided by @murphyjacob4 (#3598) * Reject relative expire times in `SET`/`GETEX`, `RESTORE`, and the module `SetExpire` API that overflow when the current time is added, preventing negative expires that abort the server by @madolson (#4880) * Fix a server crash when loading an ACL file containing a selector with an unmatched parenthesis by @magic-peach (#4214) * Fix sorted set range commands with a negative LIMIT offset returning a wrong element on btree-encoded keys; negative offsets now return an empty result in both encodings by @xiaocj (#4637) * Redact error reply text in server logs when `hide-user-data-from-log` is enabled, so keys and values no longer leak into logs via error messages by @zackcam (#4815) * Fix cluster config saving to avoid publishing truncated `nodes.conf` files, losing the startup lock after the first save, and failing every save on SMB filesystems such as Azure Files; the lock now lives on a separate `nodes.conf.lock` file by @KewangZhili (#4489) * Fix `LSET` on 64-bit builds silently modifying the wrong element for out-of-range indexes instead of returning an index out of range error by @charsyam (#4823) Valkey 8.1.10 - Released Mon 31 August 2026 --------------------------------------------- Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible. ### Security Fixes * GHSA-jcj7-v34w-v9vv: Fix a use-after-free in RDMA connection handling that could allow an authenticated client to crash the server using CLIENT KILL. Only affects servers built with USE_RDMA and configured with an RDMA listener (#4534) ### Bug Fixes * Fix a double free when a module timer callback stops its own timer with `ValkeyModule_StopTimer` by @quanyeyang (#4211) * RESET now clears the `CLIENT IMPORT-SOURCE` flag so reused pooled connections stop reading logically expired keys by @tjade273 (#3973) * Fix AOF recovery of a truncated MULTI/EXEC block that could cause new writes to be lost after a subsequent restart by @chzhoo (#4342) * Fix an ACL bypass where duplicate STORE/STOREDIST options in GEORADIUS commands escaped key write permission checks by @tjade273 (#3971) * Fix a use-after-free crash when a cluster message of a module-registered type arrives after the module is unloaded by @enjoy-binbin (#4360) * Fix out-of-bounds access when registering or receiving cluster module messages of type 255, which is now fully supported by @enjoy-binbin (#4410) * Skip ACL permission checks when replaying the AOF, preventing silent data loss when users are restricted or disabled by @lukepalmer (#3984) * Fix a client memory accounting leak that inflated `mem_clients_normal` on replicas after disconnecting from the primary by @enjoy-binbin (#4395) * Always validate listpacks on RDB load and RESTORE to prevent deferred crashes; `sanitize-dump-payload` and the related ACL flags are now deprecated no-ops by @jjuleslasarte (#3721) * Fix a stack overflow crash when retrying large TLS writes after an OpenSSL write error by @murphyjacob4 (#4307) * Validate PUBLISH and MODULE cluster bus packet lengths, preventing a crash from forged packets with oversized payload lengths by @tjade273 (#3972) * Reject crafted stream RESTORE/RDB payloads with inconsistent lengths or negative field counts that could crash the server by @madolson (#3922) * Fix a use-after-free crash when serving multiple clients blocked on the same key if one is freed during processing by @quanyeyang (#4212) * Fix CLUSTER SLOT-STATS ORDERBY sorting when slot statistics differ by more than 2^31 by @jzy1688 (#4459) Valkey 8.1.9 - Released Tue 21 July 2026 ------------------------------------------ Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible. ### Security Fixes * CVE-2026-56684: Fix a use-after-free in TLS connection handling that could allow an authenticated client to achieve remote code execution using CLIENT KILL (#4234) * CVE-2026-63639: Reject corrupt stream RDB files containing a shared NACK across consumers, which could allow remote code execution. Reported by @z0v3r1n and @lifip. (#4073) ### Bug Fixes * Fix clients being left on the wrong database after module keyspace notifications from commands like `MOVE` and `COPY` by @enjoy-binbin (#4024) * Fix an I/O thread job queue memory-ordering race that could trigger an assertion crash on ARM/aarch64 by @jjuleslasarte (#3878) * Reject zipmap `RESTORE` payloads with overflowing length fields that could cause out-of-bounds access on 32-bit builds by @madolson (#3920) * Reject NAN scores when loading listpack/ziplist-encoded sorted sets, preventing a crash from crafted `RESTORE` payloads by @madolson (#3921) * Fix a startup crash when generating `INFO` output on 32-bit systems where `time_t` is 64-bit (e.g. Alpine time64) by @chenshi5012 (#3787) * Fix `COMMAND INFO` in RESP3 to reply with an empty Array instead of a Set for commands without subcommands by @rickrams (#3939) * Reject invalid characters in cluster AUX fields and `cluster-announce-ip` to prevent `nodes.conf` corruption and injection by @eifrah-aws (#3848) * Fix `lua-enable-insecure-api` having no effect when enabled at startup via config file or command line by @enjoy-binbin (#3548) * Increase the maximum process title length from 255 to 1024 characters to avoid truncation with long installation paths by @pkhartsk (#3843) Valkey 8.1.8 - Tue 02 June 2026 ================================================================================ Upgrade urgency HIGH: There is a critical bug that may affect a subset of users. Bug fixes ========= * Fix ZDIFF algorithm 2 memory leak on early exit (#3342) * Strictly check CRLF when parsing querybuf (#2872) * Fix incorrect memory overhead calculation for watched keys (#3359) * Fix `valkey-cli --cluster del-node` for unreachable nodes (#3209) * Fix race condition during async client freeing with IO threading enabled (#3458) * Fix double free in stream consumer PEL loading with corrupt RDB data (#3498) * Fixes server crash when RDMA benchmark clients disconnect (#3448) * Fix misleading log "I/O error reading bulk count from PRIMARY: Success" (#3580) * Handle NULL pointer in streamTrim listpack delta calculation (#3591) * Fix Deferred Reply Placeholders in Active Deferred Buffers (#3578) * Add NULL check in updateSSLPendingFlag (#3641) * Fix heap-use-after-free in ACL LOAD when client free is deferred (#3800) * Redacting customer information when hide_user_data_from_log is true in rdb.c, networking.c, debug.c and t_hash (#3872) * Fix use-after-free in VM_RegisterClusterMessageReceiver (#3846) * Harden SENTINEL commands and config rewrite against control-character injection (#3847) * Fix CLUSTER SLOTS crash when called from module timer callback (#2915) ================================================================================ Valkey 8.1.7 - Tue 05 May 2026 ================================================================================ Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible. Security fixes ============== * (CVE-2026-23479) Use-After-Free in unblock client flow * (CVE-2026-25243) Invalid Memory Access in RESTORE command * (CVE-2026-23631) Use-after-free when full sync occurs during a yielding Lua/function execution ================================================================================ Valkey 8.1.6 - Released Mon 23 February 2026 ================================================================================ Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible. Security fixes ============== * (CVE-2026-21863) Remote DoS with malformed Valkey Cluster bus message * (CVE-2025-67733) RESP Protocol Injection via Lua error_reply Bug fixes ========= * Restrict ttl from being negative and avoid crash in import-mode (#2944) * Fix chained replica crash when doing dual channel replication (#2983) * Fix used_memory_dataset underflow due to miscalculated used_memory_overhead (#3005) * Fix crashing while MODULE UNLOAD when ACL rules reference a module command or subcommand (#3160) * Fix server assert on ACL LOAD and resetchannels (#3182) * Fix bug causing no response flush sometimes when IO threads are busy (#3205) ================================================================================ Valkey 8.1.5 - Released Thu 04 December 2025 ================================================================================ Upgrade urgency MODERATE: Program an upgrade of the server, but it's not urgent. Bug fixes ========= * Fix Lua VM crash after FUNCTION FLUSH ASYNC + FUNCTION LOAD (#1826) * Fix invalid memory address caused by hashtable shrinking during safe iteration (#2753) * Cluster: Avoid usage of light weight messages to nodes with not ready bidirectional links (#2817) * Send duplicate multi meet packet only for node which supports it (#2840) * Fix loading AOF files from future Valkey versions (#2899) ================================================================================ Valkey 8.1.4 - Released Fri 03 October 2025 ================================================================================ Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible. Security fixes ============== * (CVE-2025-49844) A Lua script may lead to remote code execution * (CVE-2025-46817) A Lua script may lead to integer overflow and potential RCE * (CVE-2025-46818) A Lua script can be executed in the context of another user * (CVE-2025-46819) LUA out-of-bound read Bug fixes ========= * Fix accounting for dual channel RDB bytes in replication stats (#2614) * Fix EVAL to report unknown error when empty error table is provided (#2229) * Fix use-after-free when active expiration triggers hashtable to shrink (#2257) * Fix MEMORY USAGE to account for embedded keys (#2290) * Fix memory leak when shrinking a hashtable without entries (#2288) * Prevent potential assertion in active defrag handling large allocations (#2353) * Prevent bad memory access when NOTOUCH client gets unblocked (#2347) * Converge divergent shard-id persisted in nodes.conf to primary's shard id (#2174) * Fix client tracking memory overhead calculation (#2360) * Fix RDB load per slot memory pre-allocation when loading from RDB snapshot (#2466) * Don't use AVX2 instructions if the CPU doesn't support it (#2571) * Fix bug where active defrag may be unable to defrag sparsely filled pages (#2656) ================================================================================ Valkey 8.1.3 - Released Sun 07 July 2025 ================================================================================ Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible. Bug fixes ========= * Fix missing response when AUTH is errored inside a transaction (#2287) Security fixes ============== * CVE-2025-32023 prevent out-of-bounds write during hyperloglog operations (#2146) * CVE-2025-48367 retry accept on transient errors (#2315) ================================================================================ Valkey 8.1.2 - Released Wed 11 June 2025 ================================================================================ Upgrade urgency HIGH: This release includes CVE fix for valkey-check-aof tool, we recommend you apply as soon as possible if you use the tool. Bug fixes ========= * Properly escape double quotes and backslash in `MONITOR` command (#2036) * Fix high CPU usage when fetching a random element in skewed sparse hash table (#2085) * Fix a bug that allowed clients to process commands when the server has paused command processing (#2109) * Fix a crash where the wrong slot is used when processing sharded pubsub unsubscribe events (#2137) * Fix a crash when a module attempts to write auxiliary data with AOF enabled (#2132) * Fix a bug where the engine may crash when establishing new outbound TLS connections (#2140) * Fix a bug where a cluster bus packet may be incorrectly marked as invalid (#2144) * Fix a bug where CLUSTER SLOTS/NODES information can be stale after updating node port/tls-port (#2186) * Fix a bug where replica in cluster mode can't finish failover when config epoch is outdated (#2178) * Fix a bug to avoid CLIENT UNBLOCK command to unblock paused clients (#2117) Security fixes ============== * CVE-2025-27151 Check length of AOF file name in valkey-check-aof (#2146) ================================================================================ Valkey 8.1.1 - Released Wed 23 Apr 2025 ================================================================================ Upgrade urgency SECURITY: This release includes security fixes we recommend you apply as soon as possible. Bug fixes ========= * Fix the build on less common platforms in zmalloc.c (#1922) * fix: add samples to stream object consumer trees (#1825) * Fix crash during TLS handshake with I/O threads (#1955) * Fix cluster slot stats assertion during promotion of replica (#1950) * Fix panic in primary when blocking shutdown after previous block with timeout (#1948) * Ignore stale gossip packets that arrive out of order (#1777) * Fix incorrect lag reported in XINFO GROUPS (#1952) * Fix engine crash on module client blocking during keyspace events (#1819) * Avoid shard id update of replica if not matching with primary shard id (#573) * Only enable defrag for vendored jemalloc (#1985) * Allow scripts to support null characters again (#1984) Security fixes ============== * CVE-2025-21605 Limit output buffer for unauthenticated clients (#1994) ================================================================================ Valkey 8.1.0 GA - Released Mon 31 March 2025 ================================================================================ Upgrade urgency LOW: This is the first release of Valkey 8.1, a minor version update designed to further enhance performance, reliability, observability and usability over Valkey 8.0 for all Valkey installations. This release is fully compatible with all previous Valkey releases as well as Redis OSS 7.2.4. Behavior Changes ================ * Hide input buffer data from being logged on protocol error when hide-user-data-from-log is enabled (#1889) Bug fixes ========= * Fix a bug in VM_GetCurrentUserName which leads to engine crash when no valid username provided (#1885) ================================================================================ Valkey 8.1.0 RC2 - Released Thu 20 March 2025 ================================================================================ Upgrade urgency LOW: This is the second release candidate of Valkey 8.1, with several bug fixes, control on manual-failover timeout and expended module API to reduce module executed commands overhead. Performance/Efficiency Improvements - Core ========================================== * Optimize bitcount command by using x86 SIMD instructions (#1741) * Embed hash value in hash data type entries to reduce memory footprint (#1579) Cluster modifications ==================== * Add cluster-manual-failover-timeout configuration to control the timeout for manual failover (#1690) * Improve error message reporting when invalid port is provided for cluster meet command. (#1686) * broadcast epoch ASAP when configEpoch changed (#1813) Module Improvements =================== * Add new module API flag to bypass command validation in order to reduce processing overhead (#1357) Behavior Changes ================ * Enable TCP_NODELAY for engine initiated cluster and replication connections (#1763) Bug Fixes ========= * Fix `ACL LOAD` crash on a connected replica node (#1842) * Fix bug where no tracking-redir-broken is issued when the redirect client is in the process of getting closed. (#1823) * Fix replica sometimes disconnecting when replication is using TLS. (#1737) * Fix file descriptor leak when aborting dual channel replication due to error (#1721) * Fix rax crash when using keys larger than 512MB (#1722) * Fix RANDOMKEY command leading to infinite loop during when all CLIENT are PAUSED and all keys are with expiry (#1850) * Removing unicode optimization in Lua cjson library to avoid OOM when very large strings are used. (#1785) * Fix update large-reply in COMMANDLOG when reply is deferred (#1760) * Avoid setting TCP/TLS specific options for UNIX Domain Socket connections (#1706) * Fix a bug in the valkey-cli which would incorrectly render commands with text output in multi/exec (#1782) Build and Packaging changes ================================= * Check both arm64 and aarch64 for ARM based system architecture during CMake builds (#1829) * Cleanup lua object files on make distclean (#1812) * Fixed build error with CMake when using clang v19 (#1806) ================================================================================ Valkey 8.1.0 RC1 - Released Thu 11 Feb 2025 ================================================================================ Upgrade urgency LOW: This is the first release candidate of Valkey 8.1, with performance improvements, extended observability and cluster improvements and different bug fixes. It includes a new implementation of the Valkey dictionary which is more memory and cache efficient, better performance for encryption in transit, reduced replication overhead by offloading work to I/O threads, faster failover support in cluster mode, major improvements to the active defrag process to reduce the impact on command processing, different API changes for improved usability and ability to track large requests and replies. Valkey now supports new new check-and-set feature for native STRINGs. API and Interface changes ========================= * Introduce cancel argument to bgsave command (#757) * Add conditional update support to the `SET` command using `IFEQ` argument (#1324) * Add more filters to `CLIENT LIST` (#1401) * Add `availability_zone` to the HELLO response (#1487) Observability and Monitoring changes ==================================== * Extend `LATENCY LATEST` to add sum / cnt stats (#1570) * Add `paused_actions` and `paused_timeout_milliseconds` for `INFO CLIENTS` (#1519) * Add paused_reason to `INFO CLIENTS` (#1564) * Added `COMMANDLOG` to record slow executions and large requests/replies (#1294) * Fix cluster info sent stats for message with light header (#1563) * Add latency stats around cluster config file operations (#1534) * Add new flag in `CLIENT LIST` for import-source client (#1398) * Show client capabilities in `CLIENT LIST` / `CLIENT INFO` (#1698) Performance/Efficiency Improvements - Core ========================================== * Introduce a new memory efficient hash table to store keys (#1186) * Accelerate hash table iterator with prefetching (#1501) * Accelerate hash table iterator with value prefetching (#1568) * Replace dict with new hashtable: hash datatype (#1502) * Replace dict with new hashtable for sets datatype (#1176) * Replace dict with new hashtable: sorted set datatype (#1427) * Free strings during BGSAVE/BGAOFRW to reduce copy-on-write (#905) * Create an empty lua table with specified initial capacity as much as possible (#1092) * Move prepareClientToWrite out of loop for HGETALL command (#1119) * Improved hashing algorithm for Lua tables (#1168) * Replace dict with new hashtable for sets datatype (#1176) * Do security attack check only when command not found to reduce the critical path. (#1212) * Trim free space from inline command argument strings to avoid excess memory usage (#1213) * Increase the max number of io threads to 256. (#1220) * Refactor of ActiveDefrag to reduce latencies (#1242) * Integrate fast_float to optionally replace strtod (#1260) * Improvements for TLS with I/O threads (#1271) * Optimize PFCOUNT, PFMERGE command by SIMD acceleration (#1293) * Optimize sdscatrepr by batch processing printable characters (#1342) * Optimize ZRANK to avoid path comparisons (#1389) * Move clientCron onto a separate timer (#1387) * Client struct: lazy init components and optimize struct layout (#1405) * Offload reading the replication stream to IO threads (#1449) * Skip CRC checksumming during diskless full sync with TLS enabled. (#1479) New/Modified configurations =========================== * Deprecate `io-threads-do-reads`, which has no effect since io threads will now always do reads. (#1138) * Introduce `import-mode` config to avoid expiration and eviction during data syncing (#1185) * Introduce new `rdb-version-check` config which allows for relaxed RDB version verification (#1604) * Deprecate `dynamic-hz`, since server cron jobs are handled dynamically by default (#1387) * Introduce `log-format` and `log-timestamp-format` to control the log format (#1022) * Introducing `active-defrag-cycle-us` for more fine-grinned control of memory defragmentation run time (#1242) * Introduce new configurations to control the new `COMMANDLOG` reporting thresholds (#1294) Build and Packaging changes ================================= * Introduce CMake build system for valkey (#1196) * RDMA builtin support (#1209) * Fix Valkey binary build workflow, version support changes. (#1429) * Remove Valkey specific changes in jemalloc source code (#1266) Module Improvements =================== * Add API UpdateRuntimeArgs for updating the module arguments during runtime (#1041) * Add support for MustObeyClient Module API (#1582) * Adds support for scripting engines as Valkey modules (#1277, #1497) Cluster improvements ==================== * Do election in order based on failed primary rank to avoid voting conflicts (#1018) * Make replica `CLUSTER RESET` flush async based on `lazyfree-lazy-user-flush` (#1190) * Trigger the election as soon as possible when doing a forced manual failover (#1067) * Make manual failover reset the on-going election to promote failover (#1274) * Broadcast a PONG to all node in cluster when role changed (#1295) * Manual failover vote is not limited by two times the node timeout (#1305) * Automatic failover vote is not limited by two times the node timeout (#1356) Behavior Changes ================ * Streams use an additional 8 bytes to track their internal size (#688) * Take hz into account in activerehashing to avoid CPU spikes (#977) * Incr `expired_keys` if the expiration time is already expired (#1517) * Fix replica not able to initiate election in time when epoch fails (#1009) * Make `FUNCTION RESTORE FLUSH` flush async based on `lazyfree-lazy-user-flush` (#1254) * Allow `MEMORY MALLOC-STATS` and `MEMORY PURGE` during loading phase (#1317) * Use `DEEPBIND` flag when loading external modules in order to avoid symbol conflicts (#1703) Logging and Tooling Improvements ================================ * Remove the restriction that cli --cluster create requires at least 3 primary nodes (#1075) * Add short client info log to CLUSTER MEET / FORGET / RESET commands (#1249) * Support for reading from replicas in valkey-benchmark (#1392) * valkey-cli will now re-select previously selected database after reconnect (#1694) * valkey-cli will now auto-exit from subscribed mode when there are no more active subscriptions (#1432) Bug Fixes ========= * Mark the node as FAIL when the node is marked as NOADDR and broadcast the FAIL (#1191) * [Bug Fix] Optimize RDB Load Performance and Fix Cluster Mode Resizing (#1199) * Log as primary role (M) instead of child process (C) during startup (#1282) * Fix empty primary may have dirty slots data due to bad migration (#1285) * RDMA: Fix dead loop when transfer large data (20KB) (#1386) We appreciate the efforts of all who contributed code to this release! ### Contributors * Akanksha Trehun @magic-peach * Alan Scherger @flyinprogrammer * Alina Liu @asagege * Amit Nagler @naglera * Anastasia Alexandrova @nastena1606 * Bara' Hasheesh @Baraa-Hasheesh * Basel Naamna @xbasel * Ben Totten @bentotten * Benson-li @li-benson * Binbin @enjoy-binbin * Björn Svensson @bjosv * bodong.ybd @yangbodong22011 * Bogdan Petre @bogdanp05 * Caiyi Wu @Codebells * charsyam @charsyam * chenshi @chenshi5012 * Christopher Lim @christopherlim98 * chx9 @chx9 * chzhoo @chzhoo * Danish Mehmood @danish-mehmood * eifrah-aws @eifrah-aws * Guillaume Koenig @knggk * Harkrishn Patro @hpatro * Himangshu Deka @KewangZhili * Jacob Murphy @murphyjacob4 * jeon1226 @jeon1226 * Jerry Zhao @thweetkomputer * Jim Brunner @JimB123 * Jinghao Lei @rayjinghaolei * jjuleslasarte @jjuleslasarte * Josef Šimánek @simi * Jungwoo Song @bluayer * jzy1688 @jzy1688 * Karthick Ariyaratnam @karthyuom * Karthik Subbarao @KarthikSubbarao * KimHuiSu @Tarte12 * kronwerk @kronwerk * Leo Murillo @leomurillo * Lipeng Zhu @lipzhu * Luke Palmer @lukepalmer * Madelyn Olson @madolson * Marek Zoremba @zori-janea * Masahiro Ide @imasahiro * Meinhard Zhou @MeinhardZhou * Melroy van den Berg @melroy89 * Mikhail Koviazin @mkmkme * Nadav Gigi @NadavGigi * Nadav Levanoni @nadav-levanoni * Nikhil Manglore @Nikhil-Manglore * otheng @otheng03 * Parth Patel @parthpatel * Pierre @pieturin * Ping Xie @PingXie * pirate329 @pirate329 * pkhartsk @pkhartsk * Qu Chen @QuChen88 * Quanye Yang @quanyeyang * Rain Valentine @rainsupreme * Ran Shidlansik @ranshid * Ray Cao @RayaCoo * Ricardo Dias @rjd15372 * Rick Ramsay @rickrams * Romain Geissler @Romain-Geissler-1A * Roman Gershman @romange * Roshan Khatri @roshkhatri * Rueian @rueian * sananes @yaronsananes * Sarthak Aggarwal @sarthakaggarwal97 * Sasidharan Gopal @Sasidharan3094 * Saurabh K @smkher * secwall @secwall * Seungmin Lee @sungming2 * Shai Zarka @zarkash-aws * Shawn Wang @xingbowang * Shivshankar @Shivshankar-Reddy * Simon Baatz @gmbnomis * Sinkevich Artem @ArtSin * skyfirelee @artikell * Stav Ben-Tov @stav-bentov * Stefan Mueller @muelstefamzn * Sumit Sharma @sumitk163 * sushil paneru @sushilpaneru1 * Taeknology @Taeknology * Tal Shachar @talxsha * Tanmay Mohan @tanmayBeginsJourney * Tarik Ermis @tarikermis * Thalia Archibald @thaliaarchi * Tjaden Hess @tjade273 * Uri Yagelnik @uriyage * Vadym Khoptynets @poiuj * Vanessa Tang @YueTang-Vanessa * Viktor Szépe @szepeviktor * Viktor Söderqvist @zuiderkwast * VoletiRam @VoletiRam * Vu Diep @vudiep411 * WelongZuo @WelongZuo * Wen Hui @hwware * xiaocj @xiaocj * Xuyang WANG @Nugine * Yair Gottdenker @yairgott * Yanqi Lv @lyq2333 * Yury Fridlyand @Yury-Fridlyand * zackcam @zackcam * zhaozhao.zz @soloestoy * zhenwei pi @pizhenwei * zixuan zhao @azuredream * Zvi Schneider @zvi-code * 烈香 @hengyoush * 皇心 @royenheart * 风去幽墨 @fengquyoumo