Repository navigation
Spelling 16 - #2252
Spelling 16#2252
Conversation
jsoref
commented
Jun 20, 2025
- Subset of Spelling #2183
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #2252 +/- ##
============================================
+ Coverage 80.93% 80.97% +0.03%
============================================
Files 196 196
Lines 102634 102692 +58
============================================
+ Hits 83068 83150 +82
+ Misses 19566 19542 -24
🚀 New features to boost your workflow:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: 🔵 Low · 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/replication.c`:
- Line 5428: Update the two operator-facing log messages in the replica
disconnection flow near the “Disconnect timed out replicas” comment to replace
“timedout” with “timed out,” preserving the existing message context and
behavior.
In `@tests/unit/cluster/slot-migration.tcl`:
- Line 444: Update the comment above the sets-slot timeout test to state 3000ms
or 3s, matching the TIMEOUT 3000 configuration and its duration assertion.
🪄 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: a2f4af65-79e8-4c3d-99ba-eabb472ede65
📒 Files selected for processing (21)
src/cluster.csrc/cluster.hsrc/cluster_legacy.csrc/geohash_helper.csrc/latency.csrc/modules/helloacl.csrc/modules/helloblock.csrc/modules/lua/function_lua.csrc/networking.csrc/rax.csrc/replication.csrc/script.csrc/script.hsrc/sentinel.csrc/server.csrc/server.hsrc/t_stream.csrc/timeout.ctests/integration/dual-channel-replication.tcltests/unit/cluster/slot-migration.tcltests/unit/scripting.tcl
| } | ||
|
|
||
| /* Disconnect timedout replicas. */ | ||
| /* Disconnect timed out replicas. */ |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Correct the remaining timedout log messages.
The comment now uses timed out, but the log messages at Lines 5440 and 5453 still emit timedout. Update both messages for consistent operator-facing terminology.
Suggested wording update
- serverLog(LL_WARNING, "Disconnecting timedout replica (streaming sync): %s",
+ serverLog(LL_WARNING, "Disconnecting timed out replica (streaming sync): %s",
...
- serverLog(LL_WARNING, "Disconnecting timedout replica (full sync): %s",
+ serverLog(LL_WARNING, "Disconnecting timed out replica (full sync): %s",🤖 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/replication.c` at line 5428, Update the two operator-facing log messages
in the replica disconnection flow near the “Disconnect timed out replicas”
comment to replace “timedout” with “timed out,” preserving the existing message
context and behavior.
| pause_process [srv -3 pid] | ||
|
|
||
| # Setslot with an explicit 1ms timeoout | ||
| # Setslot with an explicit 1ms timeout |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Align the comment with the configured timeout.
The comment says 1ms, but line 446 passes TIMEOUT 3000. The test uses a 3,000 ms timeout and checks for a duration greater than 2,000 ms. Change the comment to 3000ms or 3s.
Proposed fix
- # Setslot with an explicit 1ms timeout
+ # Setslot with an explicit 3000ms timeout📝 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.
| # Setslot with an explicit 1ms timeout | |
| # Setslot with an explicit 3000ms timeout |
🤖 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 `@tests/unit/cluster/slot-migration.tcl` at line 444, Update the comment above
the sets-slot timeout test to state 3000ms or 3s, matching the TIMEOUT 3000
configuration and its duration assertion.
rainsupreme
left a comment
There was a problem hiding this comment.
LGTM. Please rebase this so we can merge it :)
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Review stateReady for human review. Risk: Low. Only comments, test names, internal function names and example-module reply strings change, so a mistake would at worst break the build or rename a test. Open findings: none. Resolved (1)
Backport: Not needed. Spelling cleanup with no behavior fix. Updated for 9ad10ea at 2026-10-21 19:38 UTC. The bot rewrites this comment on every review. |
rainsupreme
left a comment
There was a problem hiding this comment.
LGTM! Just one nit in an arguably bad code comment
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
…ts (#2252) - Subset of #2183 --------- Signed-off-by: Josh Soref <[email protected]> Backport-Source-PR: 2252
…ts (#2252) - Subset of #2183 --------- Signed-off-by: Josh Soref <[email protected]> Backport-Source-PR: 2252