Closed rueian closed 3 weeks ago
Previously, rueidis may pick a failed node as the primary node of a shard, especially if the failed node doesn't come back online. This PR skips those failed nodes and only picks nodes labeled as healthy as primaries.
Related to https://github.com/redis/rueidis/issues/658 and https://github.com/redis/rueidis/issues/384#issuecomment-2452676261
Previously, rueidis may pick a failed node as the primary node of a shard, especially if the failed node doesn't come back online. This PR skips those failed nodes and only picks nodes labeled as healthy as primaries.
Related to https://github.com/redis/rueidis/issues/658 and https://github.com/redis/rueidis/issues/384#issuecomment-2452676261