Repository navigation
Backport MGET key specification and cluster CI fixes to 8.6 - #1651
Conversation
* MOD-18952 Fix MGET command key spec * fix tests
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 8.6 #1651 +/- ##
=======================================
Coverage 77.59% 77.59%
=======================================
Files 15 15
Lines 3879 3879
=======================================
Hits 3010 3010
Misses 869 869 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…#1644) * MOD-18751: waive cluster bus protected mode for the oss-cluster phase redis/redis#15722 added cluster-bus-port-protected-mode, and on the 8.12 line it defaults to enabled: a node started with cluster-enabled and without tls-cluster then refuses to start, because its cluster bus port would be unauthenticated. That is how the oss-cluster phase is built, so every shard dies at startup and each test fails at connect with "Connection refused". The refusal happens while the configuration is validated, before the server opens its logfile, so the retained logs are empty and say nothing about the cause. Waive it for that phase. The bus ports here are bound to localhost on an ephemeral host, which is the condition the directive documents for waiving, and they were equally unauthenticated before the redis change - which only made running them an explicit choice. The option is not passed blind, because a redis that does not have it rejects the directive and fails to start the same way. RLTest takes it as an option rather than guessing, since nothing it can see distinguishes a build that has the option from one that does not: the 8.12 line reports 8.9.241 in version.h, the same as builds from before the change. CLUSTER_BUS_PROTECTED_MODE= omits it for anyone running the cluster phase against an older redis locally. The tls_cluster phase is left alone, since tls-cluster authenticates the bus, and so is the existing-env phase, where RLTest starts no servers. Requires RLTest with the option (RedisLabsModules/RLTest#255). * Trigger CI to build the image locally, so it installs RLTest 0.7.29 * Set CLUSTER_BUS_ARGS before the ENV_ONLY branch can use it run_env interpolates CLUSTER_BUS_ARGS for COORD=oss, but the ENV_ONLY branch calls run_env and exits 20 lines before the assignment, so that path started its cluster without the waiver and the shards refused to start on 8.12. Moving the assignment above the branch; it depends on nothing in between. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit af565f9. Configure here.
| # cluster bus, and in the 8.2.10/8.4.7/8.6.7/8.8.3/8.10.2 backports, where it | ||
| # defaults to disabled. Set CLUSTER_BUS_PROTECTED_MODE= to omit it for an older redis. | ||
| CLUSTER_BUS_ARGS="--cluster_bus_port_protected_mode ${CLUSTER_BUS_PROTECTED_MODE-no}" | ||
| [[ -z ${CLUSTER_BUS_PROTECTED_MODE-no} ]] && CLUSTER_BUS_ARGS="" |
There was a problem hiding this comment.
Cluster bus flag breaks old Redis
Medium Severity
CLUSTER_BUS_ARGS defaults to passing --cluster_bus_port_protected_mode no into every OSS cluster run. Valgrind still launches redis-server-vg from VALGRIND_REDIS_VER=7.4, which does not accept that directive, so the server exits on startup and the default CLUSTER=1 suite never runs. Omitting the flag is possible via CLUSTER_BUS_PROTECTED_MODE=, but this script never sets that when it builds Redis 7.4.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit af565f9. Configure here.


Backports ac573d8 and c4e35c2 onto 8.6.
JSON.MGET reports every key before the trailing JSONPath argument. Regression coverage checks key extraction and command metadata; existing cluster fixtures use matching hash tags.
The CI prerequisite raises RLTest to ~= 0.7.29 and passes the cluster-bus protected-mode waiver to OSS cluster runs, including ENV_ONLY. Setting CLUSTER_BUS_PROTECTED_MODE= omits the option for older Redis builds.
Validation:
Note
Medium Risk
The MGET key-spec change affects how Redis extracts keys for clustering and ACLs; incorrect metadata could mis-route multi-key MGET, though behavior is covered by new GETKEYS/COMMAND INFO tests.
Overview
Backports two fixes onto the 8.6 line: JSON.MGET command metadata and OSS cluster test harness behavior.
JSON.MGET key specification — The module command definition now uses
find_keysrangelast_key: -2instead of0, so Redis treats every argument before the trailing JSONPath as a key (matchingJSON.MGET key [key ...] path). That alignsCOMMAND GETKEYS, cluster slot checks, and ACL key analysis with runtime behavior. Regression addstest_command_json_mget_key_specand adjusts existing MGET tests to use hash-tagged keys where cluster runs need them.CI / test infra — RLTest is bumped from
~= 0.7.2to~= 0.7.29in Docker and pytest requirements.tests.shforwards--cluster_bus_port_protected_mode(defaultno) on OSS cluster and env-only runs, withCLUSTER_BUS_PROTECTED_MODE=clearing the flag for Redis builds that reject the directive.Reviewed by Cursor Bugbot for commit af565f9. Bugbot is set up for automated code reviews on this repo. Configure here.