Repository navigation
spelling: cannot - #2242
spelling: cannot#2242
Conversation
jsoref
commented
Jun 20, 2025
- Subset of Spelling #2183
rainsupreme
left a comment
There was a problem hiding this comment.
The comment/log fixes are fine, but ~12 changes touch user-facing error strings that clients may pattern-match (e.g. src/functions.c, src/module.c, src/server.c, src/sentinel.c) and corresponding test assertions. Could you drop those changes from this PR (and rebase)? If you want to pursue the user-facing changes (which may be a breaking change) let's tackle that in a separate PR, I'd say
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/module.c`:
- Line 6265: Update the disconnect callback comment near the server-provided
commands note to replace the incorrect phrase “cannot happened” with the
grammatically correct “cannot happen.”
- Around line 6814-6820: Update the exact-response assertion in the cluster
down-state test around the RM_Call error expectation to match the message
emitted by the CLUSTER_REDIR_DOWN_STATE branch in module.c: expect “ERR Cannot
execute...” instead of “ERR Can not execute...”, preserving the rest of the
response unchanged.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: bf316172-3ed8-4a5b-9731-4b77d4f25108
📒 Files selected for processing (20)
src/bio.csrc/cluster_legacy.csrc/debug.csrc/functions.csrc/io_threads.csrc/module.csrc/pubsub.csrc/rdma.csrc/server.hsrc/valkey-cli.csrc/ziplist.ctests/modules/basics.ctests/modules/block_keyspace_notification.ctests/modules/keyspace_events.ctests/unit/acl.tcltests/unit/client-eviction.tcltests/unit/cluster/scripting.tcltests/unit/functions.tcltests/unit/moduleapi/timer.tcltests/unit/wait.tcl
| * That said, it is possible that the abort operation will successes but the operation will still continue. | ||
| * This can happened if, for example, a module implements some blocking command and does not respect the | ||
| * disconnect callback. For server-provided commands this can not happened.*/ | ||
| * disconnect callback. For server-provided commands this cannot happened.*/ |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Fix the verb form in this comment.
cannot happened is incorrect. Use cannot happen.
Proposed fix
- * disconnect callback. For server-provided commands this cannot happened.*/
+ * disconnect callback. For server-provided commands this cannot happen. */📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| * disconnect callback. For server-provided commands this cannot happened.*/ | |
| * disconnect callback. For server-provided commands this cannot happen. */ |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/module.c` at line 6265, Update the disconnect callback comment near the
server-provided commands note to replace the incorrect phrase “cannot happened”
with the grammatically correct “cannot happen.”
There was a problem hiding this comment.
That's outside of the scope for this pr which is limited to just can not -> cannot
There was a problem hiding this comment.
@jsoref, acknowledged. The correction is outside this pull request’s stated scope. I will not require it here.
Would you like me to open a follow-up issue for the cannot happened → cannot happen correction in src/module.c?
You are interacting with an AI system.
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
rainsupreme
left a comment
There was a problem hiding this comment.
Thanks for the rebase — dropping the server.c and sentinel.c changes is most of it, but a few client-facing error strings are still in here, plus a couple of test assertions that got changed without their source string.
Still user-facing (please revert these back to can not):
- src/functions.c — cannot read data type (returned to the client as an error in functionRestoreCommand)
- src/module.c — Cannot execute a write command ... while the cluster is down and readonly and Cannot execute a command ... while the cluster is down (both go back to the caller as RM_Call error replies)
- src/script.c — Cannot run script on cluster, 'no-cluster' flag is set. (addReplyError, client-visible)
- src/valkey-cli.c — >>> New node already contains functions and cannot be added to the cluster. (CLI user output)
And the test assertions that check for those strings, which need to revert alongside the source:
- tests/unit/cluster/scripting.tcl — the two Cannot run script on cluster matches
- tests/unit/functions.tcl — Cannot execute a script with write flag ... and Cannot execute the command on a stale replica
Sorry for the delay in getting back to this! I expect to be more responsive going forward (fixing my personal process so I track things better 😅)
Signed-off-by: Josh Soref <[email protected]>
Review stateReady for human review. Risk: Low. No behavior changes. The worst case is an operator log grep for one of the reworded thread-join or RDMA unload messages. Open findings: none. Backport: Not needed. Spelling cleanup in comments, log lines and test names. Not a bug fix. Updated for 0762d83 at 2026-10-21 12:19 UTC. The bot rewrites this comment on every review. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #2242 +/- ##
============================================
+ Coverage 80.93% 80.94% +0.01%
============================================
Files 196 196
Lines 102634 102634
============================================
+ Hits 83068 83080 +12
+ Misses 19566 19554 -12
🚀 New features to boost your workflow:
|
- Subset of #2183 Signed-off-by: Josh Soref <[email protected]> Backport-Source-PR: 2242
- Subset of #2183 Signed-off-by: Josh Soref <[email protected]> Backport-Source-PR: 2242