[OpenSIPS-Devel] [OpenSIPS/opensips] 1444c4: cachedb_redis: add ASK redirect handling for clust...
Ravitez Dondeti
noreply at github.com
Wed Apr 22 11:33:28 UTC 2026
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 1444c40a7d153d1d1328c40648cd7bd2c5a03dc9
https://github.com/OpenSIPS/opensips/commit/1444c40a7d153d1d1328c40648cd7bd2c5a03dc9
Author: rdondeti <ravitez.dondeti at gmail.com>
Date: 2026-04-22 (Wed, 22 Apr 2026)
Changed paths:
M modules/cachedb_redis/cachedb_redis_dbase.c
M modules/cachedb_redis/cachedb_redis_utils.c
M modules/cachedb_redis/cachedb_redis_utils.h
Log Message:
-----------
cachedb_redis: add ASK redirect handling for cluster resharding
Add support for Redis ASK redirects during cluster resharding. When
a slot is being migrated between nodes, Redis returns an ASK response
instead of MOVED. Unlike MOVED (permanent redirect), ASK is a
one-time redirect that requires sending the ASKING command to the
target node before retrying the original query.
The implementation:
- Detects ASK responses alongside existing MOVED handling
- Sends ASKING command to the target node before retrying
- Reuses the MOVED redirect infrastructure (endpoint lookup,
reconnection, retry logic)
Also refactor parse_moved_reply() into parse_redirect_reply() that
accepts the prefix as a parameter, with inline wrappers
parse_moved_reply() and parse_ask_reply() for backward compatibility.
Partially addresses #2811
To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications
More information about the Devel
mailing list