You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Store and retrieve correct address/port for each cluster node in Redis
Fixes#199
Changed RedisClusterManager to store each node's address and port in Redis
and retrieve them correctly instead of using local node's config for all nodes.
Changes:
- registerMember(): Store node info as JSON with timestamp, address, and port
- getNodes(): Parse JSON to extract correct address and port for each node
- Added helper methods: extractJsonString(), extractJsonInt(), extractJsonLong()
for simple JSON parsing
- Log parsing errors and skip malformed entries gracefully
Before this fix, all nodes appeared to have the same address/port as the local
node, breaking cluster communication and load balancing. Now each node reports
its correct network location.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
0 commit comments