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

only set LEADER_HOST_KEY in redis-relation data if available #98

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

reneradoi
Copy link
Contributor

Issue

#97

If the redis relation is created before the leader was elected, it may happen that the Sentinel-leader of redis is not known yet. In this cases setting the relation data will fail because the value is None still.

Solution

Check if the data is already available before writing it to the relation data.

@reneradoi reneradoi merged commit fb68104 into main Sep 9, 2024
9 checks passed
@reneradoi reneradoi deleted the fix-issue-97 branch September 9, 2024 07:44
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.

3 participants