Skip to content

cmake: Fix missing release_header dependency for cli, benchmark, and gtest - #3683

Merged
enjoy-binbin merged 2 commits into
valkey-io:unstablefrom
poiuj:unstable
May 18, 2026
Merged

enjoy-binbin merged 2 commits into
valkey-io:unstablefrom
poiuj:unstable

Conversation

@poiuj

@poiuj poiuj commented May 12, 2026 •

Copy link
Copy Markdown
Contributor

release.c is compiled into valkey-cli, valkey-benchmark, and the valkeylib-gtest static library, but only valkey-server declared a dependency on the release_header custom target that runs mkreleasehdr.sh to generate src/release.h. On a clean build (no stale release.h on disk) or under high parallelism, those targets could attempt to compile release.c before the header was generated and fail with "release.h: No such file or directory".

Add the missing add_dependencies(... release_header) for all three.

Summary by CodeRabbit

  • Chores
    • Improved build system dependencies to ensure proper generation order during compilation.

Review Change Stack

…gtest

release.c is compiled into valkey-cli, valkey-benchmark, and the
valkeylib-gtest static library, but only valkey-server declared a
dependency on the release_header custom target that runs
mkreleasehdr.sh to generate src/release.h. On a clean build (no stale
release.h on disk) or under high parallelism, those targets could
attempt to compile release.c before the header was generated and fail
with "release.h: No such file or directory".

Add the missing add_dependencies(... release_header) for all three.

Signed-off-by: Vadym Khoptynets <1099644+poiuj@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented May 12, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. πŸŽ‰

ℹ️ Recent review info
βš™οΈ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 61dfbea4-c00d-46fe-9403-c7582a6a13c3

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between d4337d6 and 9f25ca1.

πŸ“’ Files selected for processing (2)
  • src/CMakeLists.txt
  • src/unit/CMakeLists.txt

πŸ“ Walkthrough

Walkthrough

Three CMake build targets now explicitly depend on release_header generation to ensure proper build ordering: valkey-cli and valkey-benchmark in the main configuration, and valkeylib-gtest in the unit test configuration. No other build logic changes.

Changes

Build dependency on release_header target

Layer / File(s) Summary
CLI and benchmark tool dependencies
src/CMakeLists.txt
valkey-cli and valkey-benchmark targets are made explicitly dependent on the release_header target, ensuring header generation completes before these tools are built.
Test library dependencies
src/unit/CMakeLists.txt
valkeylib-gtest test target is made explicitly dependent on the release_header target, ensuring the header is generated before test compilation.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 Three targets now await the header's birth,
Release builds first, then tools spring forth with worth,
Build order fixed, no race conditions here,
Dependencies clear, the path is now sincere!

πŸš₯ Pre-merge checks | βœ… 5
βœ… Passed checks (5 passed)
Check name Status Explanation
Description Check βœ… Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check βœ… Passed The title directly and accurately describes the main change: adding missing release_header dependencies to three CMake build targets (cli, benchmark, and gtest).
Docstring Coverage βœ… Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check βœ… Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check βœ… Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
πŸ§ͺ Generate unit tests (beta)
  • Create PR with unit tests

Tip

πŸ’¬ Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire orgβ€”no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-inβ€”scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

πŸ‘‰ Get started


Comment @coderabbitai help to get the list of available commands and usage tips.

@eifrah-aws

Copy link
Copy Markdown
Contributor

LGTM

@enjoy-binbin
enjoy-binbin requested a review from zuiderkwast May 13, 2026 07:36
@poiuj

poiuj commented May 15, 2026

Copy link
Copy Markdown
Contributor Author

@zuiderkwast do you have time to look into this micro PR?

@zuiderkwast zuiderkwast left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have the overview of the cmake files so I can't say if it's correct or not. But I trust @enjoy-binbin. πŸ‘

@poiuj

poiuj commented May 17, 2026

Copy link
Copy Markdown
Contributor Author

@enjoy-binbin is there anything else blocking the PR or you can merge it?

@enjoy-binbin
enjoy-binbin merged commit ad3b33e into valkey-io:unstable May 18, 2026
58 of 59 checks passed
alon-arenberg pushed a commit to alon-arenberg/valkey that referenced this pull request May 18, 2026
…gtest (valkey-io#3683)

release.c is compiled into valkey-cli, valkey-benchmark, and the
valkeylib-gtest static library, but only valkey-server declared a
dependency on the release_header custom target that runs mkreleasehdr.sh
to generate src/release.h. On a clean build (no stale release.h on disk)
or under high parallelism, those targets could attempt to compile
release.c before the header was generated and fail with "release.h: No
such file or directory".

Add the missing add_dependencies(... release_header) for all three.

Signed-off-by: Vadym Khoptynets <1099644+poiuj@users.noreply.github.com>
Signed-off-by: Alon Arenberg <alonare@amazon.com>
alon-arenberg pushed a commit to alon-arenberg/valkey that referenced this pull request Jul 15, 2026
…gtest (valkey-io#3683)

release.c is compiled into valkey-cli, valkey-benchmark, and the
valkeylib-gtest static library, but only valkey-server declared a
dependency on the release_header custom target that runs mkreleasehdr.sh
to generate src/release.h. On a clean build (no stale release.h on disk)
or under high parallelism, those targets could attempt to compile
release.c before the header was generated and fail with "release.h: No
such file or directory".

Add the missing add_dependencies(... release_header) for all three.

Signed-off-by: Vadym Khoptynets <1099644+poiuj@users.noreply.github.com>
Signed-off-by: Alon Arenberg <alonare@amazon.com>
alon-arenberg pushed a commit to alon-arenberg/valkey that referenced this pull request Jul 30, 2026
…gtest (valkey-io#3683)

release.c is compiled into valkey-cli, valkey-benchmark, and the
valkeylib-gtest static library, but only valkey-server declared a
dependency on the release_header custom target that runs mkreleasehdr.sh
to generate src/release.h. On a clean build (no stale release.h on disk)
or under high parallelism, those targets could attempt to compile
release.c before the header was generated and fail with "release.h: No
such file or directory".

Add the missing add_dependencies(... release_header) for all three.

Signed-off-by: Vadym Khoptynets <1099644+poiuj@users.noreply.github.com>
Signed-off-by: Alon Arenberg <alonare@amazon.com>
@github-project-automation github-project-automation Bot moved this to To be backported in Valkey 9.1 Oct 29, 2026
valkeyrie-ops Bot pushed a commit that referenced this pull request Oct 30, 2026
…gtest (#3683)

release.c is compiled into valkey-cli, valkey-benchmark, and the
valkeylib-gtest static library, but only valkey-server declared a
dependency on the release_header custom target that runs mkreleasehdr.sh
to generate src/release.h. On a clean build (no stale release.h on disk)
or under high parallelism, those targets could attempt to compile
release.c before the header was generated and fail with "release.h: No
such file or directory".

Add the missing add_dependencies(... release_header) for all three.

Signed-off-by: Vadym Khoptynets <1099644+poiuj@users.noreply.github.com>
Backport-Source-PR: 3683
sarthakaggarwal97 pushed a commit that referenced this pull request Nov 18, 2026
…gtest (#3683)

release.c is compiled into valkey-cli, valkey-benchmark, and the
valkeylib-gtest static library, but only valkey-server declared a
dependency on the release_header custom target that runs mkreleasehdr.sh
to generate src/release.h. On a clean build (no stale release.h on disk)
or under high parallelism, those targets could attempt to compile
release.c before the header was generated and fail with "release.h: No
such file or directory".

Add the missing add_dependencies(... release_header) for all three.

Signed-off-by: Vadym Khoptynets <1099644+poiuj@users.noreply.github.com>
Backport-Source-PR: 3683
@valkeyrie-ops valkeyrie-ops Bot moved this from To be backported to Done in Valkey 9.1 Nov 18, 2026
sarthakaggarwal97 pushed a commit that referenced this pull request Nov 18, 2026
> [!NOTE]
> **Opened ready despite 6 flagged items** (`force_ready` was set):
notes flagged low-confidence; release-safety guardrail overrode AI
triage; AI triaged PRs without release-notes (confirm include/exclude);
release lines contradict each other about a note; notes credited to a
backport; a distinct commit was dropped by a reused PR number. Review
the sections below and confirm before merging.

Cuts **9.1.4** onto release line `9.1`.

- Promotes the release notes into a dated section, bumps
`src/version.h`, and refreshes the running contributor list.
- Release notes computed over the range below
(`9.1.3..2bc716e`):

```
mode: ga
source_ref: 9.1
target_branch: 9.1
base: 9.1.3 @ 29173b6
head: 2bc716e @ 2bc716e
```

### ⚠️ Notes to double-check

The generator flagged these notes low-confidence; confirm category and
wording before merging:

| PR | Category | Why flagged |
|----|----------|-------------|
| #5170 | Bug Fixes | could be Bug Fixes or Performance and Efficiency
Improvements |
| #4775 | Bug Fixes | could be Bug Fixes or Performance and Efficiency
Improvements |
| #4190 | Bug Fixes | adds new sweep and defrag mechanisms in a patch
release; could be a feature or performance change |
| #3683 | Build and Tooling | build-only fix; release-notes label not
confirmed; non-fix category on a patch release needs explicit maintainer
confirmation |
| #5046 | Bug Fixes | explicit impact scope omitted: macOS |
| #5246 | Bug Fixes | schema-only fix; may not be user-facing |
| #4913 | Bug Fixes | explicit impact scope omitted: macOS |

### Release-impact review

Code detected release-impact terms (availability, memory safety, data
integrity, access control, protocol, compatibility) in these PRs; this
forces review, it is not a severity classification.

The requested urgency is **SECURITY**. Confirm it and decide whether any
change needs a hand-authored **Security Fixes** entry:

⚠️ [#5127](#5127) names
**CVE-2021-32672**;
[#5178](#5178) names
**CVE-2021-32627**;
[#5163](#5163) names
**CVE-2021-32627**. A named CVE normally ships with `SECURITY` urgency
and a hand-authored **Security Fixes** entry; this holds the cut at any
other urgency.

<details>
<summary>38 PR(s) with impact signals</summary>

| PR | Title | Signal |
|----|-------|--------|
| [#4968](#4968) | Fix crash
when a database's keyspace is replaced mid-stage during defrag |
memory-safety risk |
| [#5091](#5091) | Fix VM_Call
crash on script-mode validation errors | server crash, assertion, or
availability failure |
| [#5133](#5133) | Keep sds
lengths in size_t when comparing and caching keys | server crash,
assertion, or availability failure |
| [#5128](#5128) | Propagate
PFADD elements applied before an INVALIDOBJ error | data or
persisted-state corruption risk |
| [#5127](#5127) | Script
debugger: reset *argc on partial-read exit to fix server crash in SYNC
mode | server crash, assertion, or availability failure |
| [#5159](#5159) | Fill
unmatched postponed reply lengths left by a module | server crash,
assertion, or availability failure |
| [#4091](#4091) | Fix crash
when processing heartbeat from a node with no local role | server crash,
assertion, or availability failure |
| [#4351](#4351) | Fix NULL
deref in usUntilEarliestTimer when all time events are deleted | server
crash, assertion, or availability failure |
| [#4670](#4670) | Reject
repeated CLUSTER SYNCSLOTS ESTABLISH on the same connection |
memory-safety risk |
| [#4665](#4665) | Check the
SORT destination that is actually written | security, access-control, or
injection hardening |
| [#5187](#5187) | Defer freeing
the client that runs a replication role change | server crash,
assertion, or availability failure |
| [#5182](#5182) | Exempt slot
import SYNCSLOTS FINISH from the write pause assertion | server crash,
assertion, or availability failure |
| [#5178](#5178) | Check XADD
element size before creating the stream | server crash, assertion, or
availability failure |
| [#5180](#5180) | Redact HELLO,
AUTH and MIGRATE credentials before validating arguments | security,
access-control, or injection hardening |
| [#5126](#5126) | Reject a
+CONTINUE reply to PSYNC when there is no cached primary | server crash,
assertion, or availability failure |
| [#5114](#5114) | Allow
server.log() during FUNCTION LOAD | server crash, assertion, or
availability failure |
| [#5163](#5163) | Fix integer
overflow in _quicklistNodeAllowMerge size check | server crash,
assertion, or availability failure |
| [#5151](#5151) | Fix
writevToClient stack overflow for empty bulk strings with copy avoidance
| data or persisted-state corruption risk |
| [#5137](#5137) | Ignore ping
extension values that nodes.conf cannot load | data or persisted-state
corruption risk |
| [#5184](#5184) | Treat a
replica with no known primary as owning no slots | server crash,
assertion, or availability failure |
| [#5124](#5124) | Reject sparse
HLLs that end in a truncated XZERO opcode | data or persisted-state
corruption risk |
| [#5138](#5138) | Fix
hllSparseSet aborting on SDS_TYPE_5 strings when deltalen is zero |
server crash, assertion, or availability failure |
| [#5146](#5146) | Fix integer
overflow in SORT BY/GET pattern key substitution | undefined behavior or
unsafe arithmetic |
| [#5155](#5155) | Reject
ValkeyModule_Calloc requests whose nmemb * size overflows | server
crash, assertion, or availability failure |
| [#4929](#4929) | Guard NULL
replica_primary_host in Sentinel INFO handling | server crash,
assertion, or availability failure |
| [#5087](#5087) | Treat key
specs that start past the last argument as matching no keys |
memory-safety risk |
| [#5162](#5162) | Free the ACL
log object when the ACL log is disabled | security, access-control, or
injection hardening |
| [#5115](#5115) | functions:
key per-engine stats by registered name, not shebang text | server
crash, assertion, or availability failure |
| [#5164](#5164) | Only resume a
hash defrag scan from the hash scanner's own cursor | server crash,
assertion, or availability failure |
| [#5065](#5065) | Cap the
length of inbound cluster bus packets | security, access-control, or
injection hardening |
| [#5117](#5117) | Allow the Lua
debugger to start on an empty script | server crash, assertion, or
availability failure |
| [#5134](#5134) | Do not adopt
the MYSELF flag from a gossip entry | server crash, assertion, or
availability failure |
| [#5033](#5033) | Respect
NOFAILOVER during shutdown failover | security, access-control, or
injection hardening |
| [#5085](#5085) | Disconnect
default user subscribers to revoked channels on ACL LOAD | security,
access-control, or injection hardening |
| [#5349](#5349) | Treat a torn
annotation at the end of an AOF file as a short read | server crash,
assertion, or availability failure |
| [#5246](#5246) | Allow null in
SENTINEL GET-PRIMARY-ADDR-BY-NAME reply schema | wire-protocol or reply
correctness |
| [#4913](#4913) | Expire stale
Sentinel primary-down reports before quorum checks | security,
access-control, or injection hardening |
| [#5435](#5435) | Don't free
the client that is executing a command when a blocked client's
re-executed command evicts clients | memory-safety risk |

</details>

### Excluded from generated notes (listed under Security Fixes)

#5435 was supplied as a `--security-fix`, so the generated bullet(s) in
the normal categories were dropped to avoid double-listing. To keep the
notes consistent, it appears only under **Security Fixes**, where each
is reviewed as a factual security entry.

### ⚠️ Release-safety guardrail overrode AI triage

AI excluded these PRs (or gave no verdict) but their text names a
release-impact signal, so code forced them into the notes; confirm each
bullet, category, urgency, and security treatment:

| PR | Title | Guardrail reason |
|----|-------|------------------|
| [#5246](#5246) | Allow null in
SENTINEL GET-PRIMARY-ADDR-BY-NAME reply schema | ⚠️ release-safety
guardrail (wire-protocol or reply correctness; AI exclusion) |

### Triage summary

- 44 PR(s) triaged into the notes
- 18 PR(s) triaged out

Per-PR verdicts (with reasons) are in the run's `triage-verdicts`
artifact. To include a wrongly-dropped PR, label it `release-notes` and
re-cut.

### ⚠️ Notes credited to a backport (original PR not recovered)

These notes credit the backport PR, not the change's author; confirm the
original PR and correct the credit before merging:

| Backport PR | Title |
|-------------|-------|
| [#4968](#4968) | Fix crash
when a database's keyspace is replaced mid-stage during defrag |

### ⚠️ Commits dropped by a reused PR number

Two commits resolved to the same `(#N)`; the one below was **dropped**
and is absent from the notes, so note it by hand if it is a separate
user-facing change:

| Dropped commit | Subject | Reused # | Kept commit |
|----------------|---------|----------|-------------|
| `88fd9d32ef74` | Deflake replica selection test with a longer
cluster-node-timeout (#5396) | #5396 | `2a3cf2dd6b09` |

### ⚠️ Release lines disagree about a note

Another release line already published a note for these PRs, but this
cut kept its own wording, so the entries will not read identically:

⚠️ #5133: the two lines contradict each other about the change itself,
not just its wording, which code must not resolve on its own. Read the
note on each line and settle which one is right before merging.

<details>
<summary>5 note(s) not reusing published wording</summary>

| PR | Other line | Why the wording was not reused |
|----|------------|--------------------------------|
| #5133 | `9.2` (Valkey 9.2.0-rc2) | ⚠️ `9.2` limits the change to
32-bit but this cut's note says no environment limit, so the lines
disagree about how far the change reaches |
| #5127 | `9.2` (Valkey 9.2.0-rc2) | the PR names a CVE, so its wording
is authored per release line by a human |
| #4968 | `9.2` (Valkey 9.2.0-rc2) | this cut could not confirm the PR
the note credits (unresolved backport, cherry-pick, or reused PR
number), and that credit is the only thing joining the two notes |
| #5178 | `9.2` (Valkey 9.2.0-rc2) | the PR names a CVE, so its wording
is authored per release line by a human |
| #5163 | `9.2` (Valkey 9.2.0-rc2) | the PR names a CVE, so its wording
is authored per release line by a human |

</details>

### Wording carried from other release lines

A backported change is cut once per release line, and each cut words its
notes independently. To keep one commit from being described differently
per branch, a note whose source PR another line already published takes
that published wording verbatim (joined on the trailing `(#N)`, which
always names the original source PR). Only the text is reused; the
category, the `by @handle` credit, and the `(#N)` are this cut's own.

- Release lines consulted: `9.2`, `9.0`, `8.1`, `8.0`, `7.2`, `7.0`,
`6.2`, `6.0`, `5.0`, `4.0`, `3.2`, `3.0`, `2.8`, `2.6`, `2.4`, `2.2`
- 3 generated note(s) already match the published wording: #5138, #5155,
#5169
- Reused published wording for 55 note(s)

<details>
<summary>55 note(s) reusing published wording</summary>

| PR | Wording from | Carried wording | This cut generated |
|----|--------------|-----------------|--------------------|
| #5210 | `9.2` (Valkey 9.2.0-rc2) | Correct command metadata to
describe the `ZINCRBY` increment and
`ZINTER`/`ZINTERSTORE`/`ZUNION`/`ZUNIONSTORE` weights as doubles instead
of integers | Fix command metadata to describe the `ZINCRBY` increment
and the `ZINTER`, `ZINTERSTORE`, `ZUNION` and `ZUNIONSTORE` weights as
doubles instead of integers |
| #5128 | `9.2` (Valkey 9.2.0-rc2) | Propagate `PFADD` elements applied
before a corrupted-HLL INVALIDOBJ error so replicas and the AOF stay
consistent with the primary | Fix `PFADD` not propagating to replicas
and the AOF the elements it applied before a later element fails with
INVALIDOBJ on a corrupted sparse HyperLogLog |
| #5211 | `9.2` (Valkey 9.2.0-rc2) | Correct command metadata so the
`numfields` count argument of hash field commands is no longer
associated with a key specification | Fix command metadata that
incorrectly marked the `numfields` argument of hash field commands such
as `HGETEX`, `HSETEX` and `HPEXPIRE` as a key |
| #5213 | `9.2` (Valkey 9.2.0-rc2) | Correct expiry command metadata to
show that `XX` can be combined with `GT` or `LT`, rather than all four
conditions being mutually exclusive | Fix command metadata for `EXPIRE`,
`PEXPIRE`, `HEXPIRE` and related commands to show that `XX` can be
combined with `GT` or `LT` |
| #5118 | `9.2` (Valkey 9.2.0-rc2) | Fix a server panic when a Lua
script returns or raises an error table whose metatable has an `__index`
metamethod that raises an error | Fix the server exiting when a Lua
script returns or raises an error table whose metatable has a raising
`__index` |
| #5159 | `9.2` (Valkey 9.2.0-rc2) | Fix a server crash when a module
never sets a postponed reply length; the leftover placeholder is now
filled with an empty array | Fix a crash when a module replies with
`VALKEYMODULE_POSTPONED_LEN` and never sets the reply length |
| #4091 | `9.2` (Valkey 9.2.0-rc1) | Fix a crash when processing a
heartbeat from a cluster node whose role is locally unknown, such as
after loading an incomplete nodes.conf | Fix a crash when processing a
heartbeat from a cluster node that has no role locally, such as a
primary implicitly created while loading nodes.conf |
| #5212 | `9.2` (Valkey 9.2.0-rc2) | Mark the `RESTORE` and
`RESTORE-ASKING` `IDLETIME` and `FREQ` options as mutually exclusive in
command metadata | Fix command metadata to mark the `RESTORE` and
`RESTORE-ASKING` options `IDLETIME` and `FREQ` as mutually exclusive |
| #5184 | `7.2` (Valkey 7.2.16) | Fix a crash in a cluster replica whose
primary was removed from the nodes table when another primary claims an
unassigned slot | Fix a crash on a cluster replica with no known primary
when another primary claims an unassigned slot |
| #5108 | `7.2` (Valkey 7.2.16) | 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 | Fix
`SCRIPT KILL` and `FUNCTION KILL` failing to stop Lua scripts that loop
inside nested coroutines, and script timeouts going undetected across
coroutines |
| #5124 | `7.2` (Valkey 7.2.16) | 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 | Reject corrupted sparse
HyperLogLogs that end in a truncated XZERO opcode, preventing an
out-of-bounds write in `PFADD` and `PFMERGE` |
| #5146 | `7.2` (Valkey 7.2.16) | Fix a server crash in `SORT` and
`SORT_RO` with `BY` or `GET` patterns when an element is 2 GiB or larger
| Fix a crash in `SORT` and `SORT_RO` with `BY` or `GET` patterns when
an element is 2 GiB or larger |
| #5157 | `7.2` (Valkey 7.2.16) | Fix
`ValkeyModule_CallReplyAttributeElement` always returning an error on
RESP3 attribute replies | Fix `ValkeyModule_CallReplyAttributeElement`
always failing on RESP3 attribute replies |
| #5120 | `9.2` (Valkey 9.2.0-rc2) | Fix a memory leak when
`server.register_function` named arguments are repeated in a different
letter case | Fix a memory leak when `server.register_function` receives
the same named argument more than once in different letter case |
| #5167 | `9.2` (Valkey 9.2.0-rc2) | Fix quadratic slowdown in
`HRANDFIELD` and `SRANDMEMBER` with counts on collections whose elements
differ only in letter case | Fix `HRANDFIELD` and `SRANDMEMBER` with a
count blocking the server on hashes or sets whose elements differ only
in letter case |
| #5087 | `7.2` (Valkey 7.2.16) | 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 | Fix `PFMERGE` with no source keys bypassing ACL key
permission checks and failing in `COMMAND GETKEYS`, and fix a crash on
module commands whose keynum key spec starts past the last argument |
| #5199 | `7.2` (Valkey 7.2.16) | Fix `notify-keyspace-events` dropping
the `n` (new key) flag from `CONFIG GET` and `CONFIG REWRITE` when `A`
is also set | Fix `CONFIG GET` and `CONFIG REWRITE` dropping the `n`
flag of `notify-keyspace-events` when `A` is set, which silently
disabled new key events after a restart |
| #5134 | `7.2` (Valkey 7.2.16) | 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 | Fix a cluster node failing to restart
after a gossip entry carrying the MYSELF flag adds a second myself node
to `nodes.conf` |
| #5085 | `7.2` (Valkey 7.2.16) | Fix `ACL LOAD` not disconnecting
default user clients subscribed to channels the reloaded rules no longer
allow | Fix `ACL LOAD` not disconnecting default user clients subscribed
to channels that the reloaded ACL file no longer allows |
| #4863 | `9.2` (Valkey 9.2.0-rc2) | Allow modules to block RESP3
clients that are subscribed to Pub/Sub channels instead of failing
`ValkeyModule_BlockClient` with ENOTSUP | Fix module commands being
unable to block RESP3 clients that are subscribed to Pub/Sub channels |
| #4775 | `9.2` (Valkey 9.2.0-rc2) | Bound the time spent per cycle
evicting keys from the client tracking table, avoiding long stalls after
lowering `tracking-table-max-keys` | Fix server stalls while evicting
keys from the client tracking table after `tracking-table-max-keys` is
lowered, by bounding the time spent per eviction call |
| #4190 | `9.2` (Valkey 9.2.0-rc2) | 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 | Fix unbounded memory growth in the client tracking table
from disconnected clients' IDs on keys that are never modified, and
include the table in active defrag |
| #3683 | `9.2` (Valkey 9.2.0-rc1) | Fix clean or highly parallel builds
failing with a missing release.h for valkey-cli, valkey-benchmark, and
unit tests | Fix CMake builds of `valkey-cli`, `valkey-benchmark` and
unit tests failing with a missing `release.h` on clean or highly
parallel builds |
| #4995 | `9.2` (Valkey 9.2.0-rc2) | Fix a memory leak when `GEOSEARCH`
or `GEOSEARCHSTORE` is given repeated `BYPOLYGON` options | Fix a memory
leak in `GEOSEARCH` and `GEOSEARCHSTORE` when the `BYPOLYGON` option is
repeated |
| #5046 | `9.2` (Valkey 9.2.0-rc2) | Fix a memory leak in
`ValkeyModule_GetCommandKeysWithFlags` when introspecting commands with
large key lists | Fix a memory leak in the
`ValkeyModule_GetCommandKeysWithFlags` module API for commands with
large key lists |
| #5092 | `9.2` (Valkey 9.2.0-rc2) | `MEMORY USAGE` now counts hash
fields that have expired but not yet been reaped, fixing under-reported
sizes | Fix `MEMORY USAGE` under-reporting hashes that hold expired
fields not yet reclaimed |
| #5091 | `9.2` (Valkey 9.2.0-rc2) | Fix a crash in `ValkeyModule_Call`
when script-mode validation fails and error replies were not requested |
Fix a crash when a module calls `ValkeyModule_Call` in script mode (`S`)
without the error-reply flag (`E`) and the command fails validation |
| #5191 | `9.2` (Valkey 9.2.0-rc2) | In cluster mode, one cross-slot
command in a script no longer makes every later script and function call
fail until restart | Fix all later script and function calls failing
with "Attempted to access a non local key in a cluster node" after one
script runs a cross-slot command in cluster mode |
| #3510 | `9.2` (Valkey 9.2.0-rc1) | 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 | Fix an infinite busy loop
consuming 100% CPU on TLS connections after a read or write handler is
removed |
| #4351 | `9.2` (Valkey 9.2.0-rc1) | Fix a crash caused by a NULL
pointer dereference when all timer events in an event loop are pending
deletion | Fix a NULL dereference crash in the event loop when all time
events are pending deletion |
| #4171 | `9.2` (Valkey 9.2.0-rc1) | Fix a node staying stuck in PFAIL
when its PING is lost while the peer's own traffic keeps the cluster
link alive | Fix a cluster node staying stuck in PFAIL when its PING is
lost while the peer's own PINGs keep the link alive |
| #4330 | `9.2` (Valkey 9.2.0-rc1) | `CLUSTER SYNCSLOTS FINISH` now
rejects clients outside the slot migration stream, preventing misuse of
the import state machine | Reject `CLUSTER SYNCSLOTS FINISH` from
clients that are not part of the slot migration replication stream,
preventing them from terminating a slot import |
| #4670 | `9.2` (Valkey 9.2.0-rc1) | Reject a repeated `CLUSTER
SYNCSLOTS ESTABLISH` on the same connection, which could lead to a
use-after-free crash on disconnect | Fix a use-after-free crash when
`CLUSTER SYNCSLOTS ESTABLISH` is sent twice on the same connection |
| #4665 | `9.2` (Valkey 9.2.0-rc1) | Fix `SORT` key extraction so a
`STORE` destination named like an option can no longer bypass ACL checks
and write to an unauthorized key | Fix `SORT` checking ACL key
permissions against the wrong key when a `STORE` destination is named
like an option (`by`, `get`, `limit`, `store`), which allowed writes
outside a user's allowed key patterns |
| #4777 | `9.2` (Valkey 9.2.0-rc2) | Fix `GEOSEARCH` returning empty
results for exact zero-distance matches on builds where floating-point
contraction breaks the latitude distance calculation | Fix `GEOSEARCH`
with a zero radius or box returning no results on some builds due to
floating-point precision when latitudes are equal |
| #5109 | `9.2` (Valkey 9.2.0-rc2) | Fix a memory leak when deleting or
replacing Lua functions with long names or descriptions | Fix a memory
leak when deleting or replacing Lua functions that have a long name or
description |
| #5187 | `9.2` (Valkey 9.2.0-rc2) | Fix a crash when a replication role
change command such as `REPLICAOF` or `CLUSTER REPLICATE` arrives over a
replication link | Fix a crash when `REPLICAOF`, `CLUSTER REPLICATE`,
`CLUSTER RESET` or `CLUSTER FAILOVER TAKEOVER` is received over a
replication link |
| #5182 | `9.2` (Valkey 9.2.0-rc2) | Fix a crash on the importing
primary when an atomic slot migration fails while its writes are paused
| Fix an assertion crash on a primary when an atomic slot migration
import fails while its writes are paused |
| #5180 | `9.2` (Valkey 9.2.0-rc2) | Redact credentials of rejected
`HELLO`, `AUTH` and `MIGRATE` commands so passwords no longer leak to
MONITOR and the commandlog | Fix credentials of rejected `HELLO`, `AUTH`
and `MIGRATE` commands being shown in clear text in `MONITOR` and the
commandlog |
| #5126 | `9.2` (Valkey 9.2.0-rc2) | Prevent a replica crash when the
primary wrongly replies +CONTINUE to a full resync request; the replica
now drops the link and retries | Fix a replica crash when the primary
replies `+CONTINUE` to a `PSYNC` full resync request and there is no
cached primary |
| #5114 | `9.2` (Valkey 9.2.0-rc2) | FUNCTION LOAD no longer aborts the
server when a library calls `server.log()` at its top level, including
when loading from RDB or AOF | Fix a crash when a Lua function library
calls `server.log()` at its top level during `FUNCTION LOAD` or when
loaded from RDB or AOF at startup |
| #5151 | `9.2` (Valkey 9.2.0-rc2) | Fix a stack buffer overflow when
replying with hundreds of empty strings (e.g. MGET) while reply copy
avoidance is active | Fix a stack buffer overflow when a reply such as
`MGET` contains hundreds of empty strings while reply copy avoidance is
active |
| #5137 | `9.2` (Valkey 9.2.0-rc2) | Ignore invalid ping extension
values from cluster peers that would corrupt nodes.conf and prevent the
node from restarting | Ignore invalid hostname, nodename, client IP and
availability zone values announced by cluster bus peers, which corrupted
nodes.conf and made the node panic on restart |
| #5161 | `9.2` (Valkey 9.2.0-rc2) | Bound the bytes the cluster bus
reads per event so a peer with a constant read backlog cannot starve
clients, cron and heartbeats | Limit the bytes read per event from a
cluster bus link so a peer that keeps sending cannot block the main
thread and starve clients |
| #5208 | `9.2` (Valkey 9.2.0-rc2) | Correct `SENTINEL SIMULATE-FAILURE`
metadata so `COMMAND DOCS` shows the required mode argument and its
tokens | Fix `SENTINEL SIMULATE-FAILURE` argument metadata so `COMMAND
DOCS` reports the mode as required and includes the option tokens |
| #5158 | `7.2` (Valkey 7.2.16) | Fail `CONFIG REWRITE` when the old
config file reads short instead of writing uninitialized memory into the
new config file | Fix `CONFIG REWRITE` writing uninitialized memory into
the config file when the old config file reads short; the rewrite now
fails with an error |
| #5245 | `9.2` (Valkey 9.2.0-rc2) | Mark the absolute timestamp
arguments of `HEXPIREAT` and `HPEXPIREAT` as `unix-time` in `COMMAND
DOCS`, matching `EXPIREAT` and `PEXPIREAT` | Fix `COMMAND DOCS`
reporting the `HEXPIREAT` and `HPEXPIREAT` timestamp arguments as
`integer` instead of `unix-time` |
| #5129 | `9.2` (Valkey 9.2.0-rc2) | Clear the script debugger input
buffer after a "max client buffer reached" error so later debugger
commands in the same session do not keep failing | Fix the script
debugger failing every further command after its 1 MB input limit is hit
and the script catches the error with `pcall` |
| #4929 | `7.2` (Valkey 7.2.16) | Fix a Sentinel crash when a monitored
replica's `INFO` reply contains no `master_host` | Fix a Sentinel crash
when a monitored replica's INFO reply has a matching primary port but no
primary host |
| #4711 | `7.2` (Valkey 7.2.16) | 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` | Fix a use-after-free in streams where
`XADD` creating a new node can leave a dangling pointer later read by
`XRANGE`, `XREVRANGE` or `XINFO STREAM ... FULL` |
| #5065 | `7.2` (Valkey 7.2.16) | 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 | Reject inbound
cluster bus packets over 16MB, except Pub/Sub and module messages, so a
peer can no longer make a node buffer up to 4GB |
| #4983 | `7.2` (Valkey 7.2.16) | Fix `XINFO GROUPS` and `XINFO STREAM
... FULL` reporting too-high consumer group lag after `XTRIM` or a
trimming `XADD` removes unread entries | Fix `XINFO GROUPS` and `XINFO
STREAM ... FULL` reporting a too-high consumer group lag after `XTRIM`
or a trimming `XADD` removes unread entries |
| #5349 | `7.2` (Valkey 7.2.16) | 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` | Fix AOF load failure after a torn annotation
at the end of the file by treating it as a short read, which
`valkey-check-aof --fix` can now truncate |
| #5246 | `7.2` (Valkey 7.2.16) | Correct the `SENTINEL
GET-MASTER-ADDR-BY-NAME` reply schema to allow the null reply returned
for an unknown primary name | Fix the reply schemas of `SENTINEL
GET-PRIMARY-ADDR-BY-NAME` and `SENTINEL GET-MASTER-ADDR-BY-NAME` to
include the null reply for an unknown primary |
| #5244 | `9.2` (Valkey 9.2.0-rc2) | 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 | Fix `COMMAND DOCS`
and `valkey-cli` hints presenting `ZADD` NX with GT or LT and `LCS` LEN
with IDX as valid combinations |

</details>

*Generated by valkey-ci-agent. Review before merging into the release
line.*

Signed-off-by: valkeyrie-bot[bot] <3692572+valkeyrie-bot[bot]@users.noreply.github.com>
Co-authored-by: valkeyrie-bot[bot] <3692572+valkeyrie-bot[bot]@users.noreply.github.com>
doonga pushed a commit to greyrock-labs/home-ops that referenced this pull request Nov 19, 2026
…(#839)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [docker.io/valkey/valkey](https://github.com/valkey-io/valkey) | patch | `9.1.3-alpine` β†’ `9.1.4-alpine` |

---

### Release Notes

<details>
<summary>valkey-io/valkey (docker.io/valkey/valkey)</summary>

### [`v9.1.4`](https://github.com/valkey-io/valkey/releases/tag/9.1.4)

[Compare Source](valkey-io/valkey@9.1.3...9.1.4)

## Valkey 9.1.4  -  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 [@&#8203;nadav-levanoni](https://github.com/nadav-levanoni) ([#&#8203;5435](valkey-io/valkey#5435))

##### Bug Fixes

- Fix a crash when a key with a name of 2 GiB or more is sampled for eviction, and incorrect comparison of strings that large by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5133](valkey-io/valkey#5133))
- Correct command metadata to describe the `ZINCRBY` increment and `ZINTER`/`ZINTERSTORE`/`ZUNION`/`ZUNIONSTORE` weights as doubles instead of integers by [@&#8203;sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#&#8203;5210](valkey-io/valkey#5210))
- Propagate `PFADD` elements applied before a corrupted-HLL INVALIDOBJ error so replicas and the AOF stay consistent with the primary by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5128](valkey-io/valkey#5128))
- Fix a server crash in `SCRIPT DEBUG SYNC` mode when a debugger command arrives in more than one read by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5127](valkey-io/valkey#5127))
- Correct command metadata so the `numfields` count argument of hash field commands is no longer associated with a key specification by [@&#8203;sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#&#8203;5211](valkey-io/valkey#5211))
- Correct expiry command metadata to show that `XX` can be combined with `GT` or `LT`, rather than all four conditions being mutually exclusive by [@&#8203;sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#&#8203;5213](valkey-io/valkey#5213))
- 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 [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5118](valkey-io/valkey#5118))
- Fix a server crash when a module never sets a postponed reply length; the leftover placeholder is now filled with an empty array by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5159](valkey-io/valkey#5159))
- Fix a crash when processing a heartbeat from a cluster node whose role is locally unknown, such as after loading an incomplete nodes.conf by [@&#8203;enjoy-binbin](https://github.com/enjoy-binbin) ([#&#8203;4091](valkey-io/valkey#4091))
- Mark the `RESTORE` and `RESTORE-ASKING` `IDLETIME` and `FREQ` options as mutually exclusive in command metadata by [@&#8203;sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#&#8203;5212](valkey-io/valkey#5212))
- Fix a crash in a cluster replica whose primary was removed from the nodes table when another primary claims an unassigned slot by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5184](valkey-io/valkey#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 [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5108](valkey-io/valkey#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 [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5124](valkey-io/valkey#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 [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5138](valkey-io/valkey#5138))
- Fix a server crash in `SORT` and `SORT_RO` with `BY` or `GET` patterns when an element is 2 GiB or larger by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5146](valkey-io/valkey#5146))
- Fix `ValkeyModule_Calloc` and `ValkeyModule_TryCalloc` returning an undersized buffer when `nmemb * size` overflows by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5155](valkey-io/valkey#5155))
- Fix `ValkeyModule_CallReplyAttributeElement` always returning an error on RESP3 attribute replies by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5157](valkey-io/valkey#5157))
- Fix `EXEC` succeeding after a key that was already expired at `WATCH` time is overwritten, which can happen on replicas by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5169](valkey-io/valkey#5169))
- Fix a memory leak when `server.register_function` named arguments are repeated in a different letter case by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5120](valkey-io/valkey#5120))
- Fix quadratic slowdown in `HRANDFIELD` and `SRANDMEMBER` with counts on collections whose elements differ only in letter case by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5167](valkey-io/valkey#5167))
- 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 [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5087](valkey-io/valkey#5087))
- Fix `HSETEX` and `MSETEX` with a repeated EX, PX or EXAT option being rejected by replicas and lost on AOF reload by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5088](valkey-io/valkey#5088))
- 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 [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5162](valkey-io/valkey#5162))
- Fix a crash on the first `FUNCTION LOAD` after startup when the shebang engine name contains a NUL byte by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5115](valkey-io/valkey#5115))
- Fix an active defrag crash when a large set, sorted set or list is replaced by a hashtable-encoded hash while it is being defragmented by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5164](valkey-io/valkey#5164))
- 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 [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5105](valkey-io/valkey#5105))
- Fix long stalls in `SRANDMEMBER`, `ZRANDMEMBER`, `HRANDFIELD` and `SPOP` on a small key whose hashtable is still shrinking from a much larger size by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5170](valkey-io/valkey#5170))
- Fix `notify-keyspace-events` dropping the `n` (new key) flag from `CONFIG GET` and `CONFIG REWRITE` when `A` is also set by [@&#8203;pirate329](https://github.com/pirate329) ([#&#8203;5199](valkey-io/valkey#5199))
- Fix a crash when the Lua debugger is started on an empty or newline-only script by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5117](valkey-io/valkey#5117))
- 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 [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5134](valkey-io/valkey#5134))
- Fix `ACL LOAD` not disconnecting default user clients subscribed to channels the reloaded rules no longer allow by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5085](valkey-io/valkey#5085))
- Fix an active defrag crash when a database is replaced by an async `FLUSHDB`/`FLUSHALL`, `SWAPDB` or a replica full sync while a large key is being defragmented by [@&#8203;taham0](https://github.com/taham0) ([#&#8203;4968](valkey-io/valkey#4968))
- Allow modules to block RESP3 clients that are subscribed to Pub/Sub channels instead of failing `ValkeyModule_BlockClient` with ENOTSUP by [@&#8203;quanyeyang](https://github.com/quanyeyang) ([#&#8203;4863](valkey-io/valkey#4863))
- Bound the time spent per cycle evicting keys from the client tracking table, avoiding long stalls after lowering `tracking-table-max-keys` by [@&#8203;tanmayBeginsJourney](https://github.com/tanmayBeginsJourney) ([#&#8203;4775](valkey-io/valkey#4775))
- 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 [@&#8203;rayjinghaolei](https://github.com/rayjinghaolei) ([#&#8203;4190](valkey-io/valkey#4190))
- Fix a memory leak when `GEOSEARCH` or `GEOSEARCHSTORE` is given repeated `BYPOLYGON` options by [@&#8203;charsyam](https://github.com/charsyam) ([#&#8203;4995](valkey-io/valkey#4995))
- Fix a memory leak in `ValkeyModule_GetCommandKeysWithFlags` when introspecting commands with large key lists by [@&#8203;christopherlim98](https://github.com/christopherlim98) ([#&#8203;5046](valkey-io/valkey#5046))
- `MEMORY USAGE` now counts hash fields that have expired but not yet been reaped, fixing under-reported sizes by [@&#8203;sushilpaneru1](https://github.com/sushilpaneru1) ([#&#8203;5092](valkey-io/valkey#5092))
- Fix a crash in `ValkeyModule_Call` when script-mode validation fails and error replies were not requested by [@&#8203;dvkashapov](https://github.com/dvkashapov) ([#&#8203;5091](valkey-io/valkey#5091))
- In cluster mode, one cross-slot command in a script no longer makes every later script and function call fail until restart by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5191](valkey-io/valkey#5191))
- 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 [@&#8203;yairgott](https://github.com/yairgott) ([#&#8203;3510](valkey-io/valkey#3510))
- Fix a crash caused by a NULL pointer dereference when all timer events in an event loop are pending deletion by [@&#8203;royenheart](https://github.com/royenheart) ([#&#8203;4351](valkey-io/valkey#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 [@&#8203;enjoy-binbin](https://github.com/enjoy-binbin) ([#&#8203;4171](valkey-io/valkey#4171))
- `CLUSTER SYNCSLOTS FINISH` now rejects clients outside the slot migration stream, preventing misuse of the import state machine by [@&#8203;enjoy-binbin](https://github.com/enjoy-binbin) ([#&#8203;4330](valkey-io/valkey#4330))
- Reject a repeated `CLUSTER SYNCSLOTS ESTABLISH` on the same connection, which could lead to a use-after-free crash on disconnect by [@&#8203;Pyolar](https://github.com/Pyolar) ([#&#8203;4670](valkey-io/valkey#4670))
- 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 [@&#8203;madolson](https://github.com/madolson) ([#&#8203;4665](valkey-io/valkey#4665))
- Fix `GEOSEARCH` returning empty results for exact zero-distance matches on builds where floating-point contraction breaks the latitude distance calculation by [@&#8203;Baraa-Hasheesh](https://github.com/Baraa-Hasheesh) ([#&#8203;4777](valkey-io/valkey#4777))
- Fix a memory leak when deleting or replacing Lua functions with long names or descriptions by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5109](valkey-io/valkey#5109))
- Fix a crash when a replication role change command such as `REPLICAOF` or `CLUSTER REPLICATE` arrives over a replication link by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5187](valkey-io/valkey#5187))
- Fix a crash on the importing primary when an atomic slot migration fails while its writes are paused by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5182](valkey-io/valkey#5182))
- Fix `XADD` rejected for oversized elements leaving an empty stream on the primary that is not propagated to replicas or the AOF by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5178](valkey-io/valkey#5178))
- Redact credentials of rejected `HELLO`, `AUTH` and `MIGRATE` commands so passwords no longer leak to MONITOR and the commandlog by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5180](valkey-io/valkey#5180))
- Prevent a replica crash when the primary wrongly replies +CONTINUE to a full resync request; the replica now drops the link and retries by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5126](valkey-io/valkey#5126))
- FUNCTION LOAD no longer aborts the server when a library calls `server.log()` at its top level, including when loading from RDB or AOF by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5114](valkey-io/valkey#5114))
- Fix an integer overflow in the list node merge size check that could crash the server on `LSET` after loading a list with a near-4GiB node via `RESTORE` or full sync by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5163](valkey-io/valkey#5163))
- Fix a stack buffer overflow when replying with hundreds of empty strings (e.g. MGET) while reply copy avoidance is active by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5151](valkey-io/valkey#5151))
- Ignore invalid ping extension values from cluster peers that would corrupt nodes.conf and prevent the node from restarting by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5137](valkey-io/valkey#5137))
- Bound the bytes the cluster bus reads per event so a peer with a constant read backlog cannot starve clients, cron and heartbeats by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5161](valkey-io/valkey#5161))
- Correct `SENTINEL SIMULATE-FAILURE` metadata so `COMMAND DOCS` shows the required mode argument and its tokens by [@&#8203;sarthakaggarwal97](https://github.com/sarthakaggarwal97) ([#&#8203;5208](valkey-io/valkey#5208))
- Fail `CONFIG REWRITE` when the old config file reads short instead of writing uninitialized memory into the new config file by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5158](valkey-io/valkey#5158))
- Mark the absolute timestamp arguments of `HEXPIREAT` and `HPEXPIREAT` as `unix-time` in `COMMAND DOCS`, matching `EXPIREAT` and `PEXPIREAT` by [@&#8203;rainsupreme](https://github.com/rainsupreme) ([#&#8203;5245](valkey-io/valkey#5245))
- Clear the script debugger input buffer after a "max client buffer reached" error so later debugger commands in the same session do not keep failing by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5129](valkey-io/valkey#5129))
- Fix a Sentinel crash when a monitored replica's `INFO` reply contains no `master_host` by [@&#8203;smkher](https://github.com/smkher) ([#&#8203;4929](valkey-io/valkey#4929))
- Fix Lua `server.error_reply()` returning stale heap memory as the error message when given a string of 2 GiB or more by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5122](valkey-io/valkey#5122))
- 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 [@&#8203;Baraa-Hasheesh](https://github.com/Baraa-Hasheesh) ([#&#8203;4711](valkey-io/valkey#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 [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5065](valkey-io/valkey#5065))
- Fix `XINFO GROUPS` and `XINFO STREAM ... FULL` reporting too-high consumer group lag after `XTRIM` or a trimming `XADD` removes unread entries by [@&#8203;Sasidharan3094](https://github.com/Sasidharan3094) ([#&#8203;4983](valkey-io/valkey#4983))
- Fix shutdown-triggered failover promoting a replica that has `cluster-replica-no-failover yes` by [@&#8203;simonasr](https://github.com/simonasr) ([#&#8203;5033](valkey-io/valkey#5033))
- 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 [@&#8203;sumitk163](https://github.com/sumitk163) ([#&#8203;5349](valkey-io/valkey#5349))
- Correct the `SENTINEL GET-MASTER-ADDR-BY-NAME` reply schema to allow the null reply returned for an unknown primary name by [@&#8203;rainsupreme](https://github.com/rainsupreme) ([#&#8203;5246](valkey-io/valkey#5246))
- Fix Sentinel counting stale primary-down reports from peers toward quorum, which could trigger an unwanted failover of a healthy primary by [@&#8203;akasakariko](https://github.com/akasakariko) ([#&#8203;4913](valkey-io/valkey#4913))
- Fix Lua `server.log()` blocking the server for seconds when called with thousands of arguments, with no `-BUSY` reply or `SCRIPT KILL` by [@&#8203;madolson](https://github.com/madolson) ([#&#8203;5104](valkey-io/valkey#5104))
- Fix `valkey-cli --cluster reshard` and `rebalance` exiting with a success status when slot migration fails by [@&#8203;imasahiro](https://github.com/imasahiro) ([#&#8203;4853](valkey-io/valkey#4853))
- 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 [@&#8203;rainsupreme](https://github.com/rainsupreme) ([#&#8203;5244](valkey-io/valkey#5244))

##### Build and Tooling

- Fix clean or highly parallel builds failing with a missing release.h for valkey-cli, valkey-benchmark, and unit tests by [@&#8203;poiuj](https://github.com/poiuj) ([#&#8203;3683](valkey-io/valkey#3683))

**Full Changelog**: <valkey-io/valkey@9.1.3...9.1.4>

</details>

---

### Configuration

πŸ“… **Schedule**: (in timezone America/New_York)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

β™» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ”• **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yNDMuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjI0My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Reviewed-on: https://git.greyrock.io/todd/home-ops/pulls/839
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants