Add maintenance notifications support for OSS API cluster clients#3946
Merged
petyaslavova merged 28 commits intomasterfrom Feb 13, 2026
Merged
Add maintenance notifications support for OSS API cluster clients#3946petyaslavova merged 28 commits intomasterfrom
petyaslavova merged 28 commits intomasterfrom
Conversation
…gration with testing helper proxy server. (#3844) * Adding maint_notifications_config to RedisCluster's NodesManager * Adding Redis Proxy integration * Migrating test proxy helper to use custom https client
…g of SMIGRATING is completed and covered with tests. (#3849) * Adding maintenance notifications for OSS API enabled connections * Adding oss maint notifications handler configurations to parsers. Placeholder for smigrated handler in OSSMaintNotificationsHandler class * Applying review comments. Finilized the notifications format.
* Adding SMIGRATED handling * Applying Copilot's comments * Applying review comments
…sh notifications. (#3860)
* Refactoring the logic related to SMIGRATED notification format. Applying the new format. * Add handling for parallel slot migrations with maintenance notifications flow for OSS Cluster API (#3869) * Adding handling of parallel slot migrations when OSS cluster api is used * Applying review comments
…ifications e2e tests for node slots migration and node fail over (#3882) * Adding fault injector abstraction that would be able to work with re fault injector as well as with proxy server * Adding wrapper that will allow using the mock proxy for e2e tests execution. Updating standalone maint notifications tests. Adding cluster maint notifications test with slot migration and node fail over. Fix in the connection logic when applying relaxed_timeout. * Apply suggestions from code review --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ifications (#3921) * Adding tests for new connections. Reorganizing helpers and tests. Cluster db is now created for every test.
…in the src node address for each slot range movement. (#3925) * Refactoring the SMIGRATED flow - the notification is changed to contain the src node address for each slot range movement. * Applying review comments and adding additional test step to ensure connections states * Migarting the last test to use the FI new actions structure * Completed migration of all oss api hitless tests to use the new FI helpers. * Applying review comments
Collaborator
Author
|
augment review |
🤖 Augment PR SummarySummary: Adds Redis Cluster maintenance-notification support for Redis Cloud OSS API clusters (hitless topology refresh & connection handoff) when RESP3 push notifications are enabled. Changes:
Technical Notes: The OSS SMIGRATED handler triggers a 🤖 Was this summary useful? React with 👍 or 👎 |
…fications for redis < 7.4
0f7666c to
8db51bb
Compare
…er instead of directly the logging module.
b6b2fee to
1940e7b
Compare
… compatible with entraid
…raid update and release.
…ensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
vladvildanov
approved these changes
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds support for smart connection hand-off during maintenance operations for Redis Cloud databases with OSS API enabled.
When a cluster node undergoes maintenance, the client automatically updates its cluster topology and manages connections to ensure minimal disruption (in case the feature is enabled in the server).
Changes
New notification types:
OSSNodeMigratingNotificationandOSSNodeMigratedNotificationfor OSS cluster maintenance events (SMIGRATING/SMIGRATED push messages)New handler:
OSSMaintNotificationsHandlerto process cluster-wide maintenance notifications and trigger topology refreshCluster client integration:
MaintNotificationsAbstractRedisClustermixin adds maintenance notification support to RedisClusterConnection management: Affected connections are marked for reconnect; removed nodes have their connections disconnected
Parser updates: Handle new
SMIGRATING/SMIGRATEDpush message typesAuto-enabled for RESP3: Maintenance notifications are enabled by default when using protocol version 3
Usage