Skip to content

Fix failover#396

Merged
monstermunchkin merged 5 commits intomasterfrom
fix-failover
Jan 17, 2025
Merged

Fix failover#396
monstermunchkin merged 5 commits intomasterfrom
fix-failover

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.

@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