Skip to content

Conversation

@ChrisBr
Copy link
Contributor

@ChrisBr ChrisBr commented May 15, 2025

setnx which we use during leader election is currently not safe to retry via Redis reconnect_attempts as the command could succeed on server side but we run into a client timeout. In this case, any subsequent setnx calls will return false and leader election will fail.

Instead we're now setting a uniq value for setup and compare it when we fail.

@ChrisBr ChrisBr force-pushed the cbruckmayer/make-setnx-atomic-v2 branch 2 times, most recently from c061678 to 0612cfb Compare May 15, 2025 10:47
@ChrisBr ChrisBr force-pushed the cbruckmayer/make-setnx-atomic-v2 branch from 0612cfb to edcce13 Compare May 15, 2025 13:07
@ChrisBr ChrisBr force-pushed the cbruckmayer/make-setnx-atomic-v2 branch from edcce13 to 99df085 Compare May 15, 2025 14:32
@ChrisBr ChrisBr merged commit 3deaf84 into main May 15, 2025
13 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants