Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failover #396

Merged
merged 5 commits into from
Jan 17, 2025
Merged

Fix failover #396

merged 5 commits into from
Jan 17, 2025

Conversation

srieckhof
Copy link
Contributor

@srieckhof srieckhof commented Jan 16, 2025

This PR fixes the instability of FSC in failover mode. By removing the call to lock.TTL() we don't run into panics inside redislock anymore and, thus, don't quit the Run() method anymore. Without lock.TTL() one pod is active and the other two are passive. This even holds after the active pod is killed. Test fuelings still work.

Also, I removed the noisy "Redis query" debug message from being logged. Instead, only errors on command execution are logged.

Copy link
Contributor

@arnold-iakab arnold-iakab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some small suggestions.

maintenance/failover/failover.go Outdated Show resolved Hide resolved
@monstermunchkin monstermunchkin merged commit 79b8e04 into master Jan 17, 2025
6 checks passed
@monstermunchkin monstermunchkin deleted the fix-failover branch January 17, 2025 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants