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

Refactor failover mechanism #393

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

srieckhof
Copy link
Contributor

@srieckhof srieckhof commented Dec 20, 2024

This is largely a refactoring in terms of improving comments, variable naming and logging.

Regarding logging: some of the logs were changed from Debug() to Info() level in order to be able to see why certain requests, e.g. to redis, failed.

The lock.TTL(ctx) is now hidden behind a function (safeGetTTL()) that recovers from a panic because I observed these kind of behaviors when testing another version of the failover improvement on dev.

@srieckhof srieckhof self-assigned this Dec 20, 2024
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.

1 participant