Repository navigation
DOC-7177 Document ioredis smart client handoffs (SCH) - #4252
andy-stark-redis wants to merge 2 commits into
Conversation
Add a "Connect using Smart client handoffs (SCH)" section to the ioredis connect page (same anchor as the other clients) and an ioredis row to the SCH support table on sch.md. Written against ioredis v6.1.0-beta.1 (redis/ioredis#2165); parked until stable v6.1.0 ships. Verified against the installed [email protected] package, not the release notes: option names, defaults, and the MaintNotifications / MaintEndpointType unions come from the shipped .d.ts; the example type-checks (tsc --strict --skipLibCheck; without skipLibCheck the library's own .d.ts fails on untyped redis-errors, an upstream gap). No live handoff was tested: that needs a Redis Cloud/Software maintenance event. Scope facts from built/Redis.js and MaintenanceManager.js: - Cluster connections (ConnectionPool, subscribers, cluster/index) force maintNotifications "disabled", so the OSS Cluster API cell is "-". - Sentinel, Unix socket, custom Connector, subscriber and monitor connections still register and open the relaxed-timeout window on MIGRATING/FAILING_OVER/MOVING; only the handoff is skipped (canHandoffConnection / resolveMaintConfiguredEndpoint return false/null) and they reconnect normally. A WebFetch summary of Redis.ts claimed these were not registered at all - wrong. - RESP3 is the default since v6.0.0 (RedisOptions.js protocol: 3), so unlike node-redis the example omits a protocol option. - Error classes are exported as CommandTimeoutDuringMaintenanceError and SocketTimeoutDuringMaintenanceError (.name matches). The option JSDoc says "CommandTimeoutDuringMaintenance"; docs use the importable name. - A handoff invalidates WATCH and EXEC rejects with WatchError ("Retry it with a fresh WATCH") - not documented for node-redis. Rejected: documenting the "ioredis:maintenance" diagnostics_channel (DataHandler.js publishes each raw notification on it). No other client's SCH section documents observability hooks; add if asked. Unpark watch: re-diff built/redis/RedisOptions.d.ts, built/maintNotifications/index.d.ts and built/index.d.ts at the v6.1.0 tag; cluster support landing before GA would change the table cell and the version note. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nits - Frontmatter description said "Python"; now "Node.js/JavaScript", matching ioredis/_index.md. - TLS example mixed readFileSync and fs.readFileSync; all three now use bare readFileSync, matching the node-redis connect page. - SCH relaxed-timeout options state "in milliseconds" explicitly (confirmed by the RedisOptions.d.ts JSDoc). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Unpark reflection (2026-11-24): predicted vs actual The park snapshot held. ioredis v6.1.0 went stable on 2026-11-23 and contains #2165 ( Checks run against
No doc edits were needed: the page already said v6.1.0, and no Not re-verified: the bodies of |
Documents smart client handoffs (SCH) for ioredis, added in v6.1.0 by redis/ioredis#2165.
content/develop/clients/ioredis/connect.md: new Connect using Smart client handoffs (SCH) section (same anchor as the other clients).content/develop/clients/sch.md: ioredis row in the support table (v6.1.0 standard routing, no OSS Cluster API) and arelatedPagesentry.🤖 Generated with Claude Code
Note
Low Risk
Documentation-only changes with no runtime or security impact.
Overview
Documents Smart client handoffs (SCH) for ioredis (v6.1.0+), aligning it with the other Redis client connect guides.
The ioredis connect page gets a new Connect using Smart client handoffs (SCH) section with a connection example and option reference (
maintNotifications,maintEndpointType, relaxed timeouts, RESP3, cluster/Sentinel limitations,WatchError, and PrivateLink/PSC notes). Minor fixes on the same page: front matter description corrected to Node.js/JavaScript, and the TLS example usesreadFileSyncconsistently for the CA cert.The SCH overview page links to the new anchor and adds an ioredis row (standard routing v6.1.0; OSS Cluster API not supported).
Reviewed by Cursor Bugbot for commit 2059dc6. Bugbot is set up for automated code reviews on this repo. Configure here.