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

HA State: ensure not this and another instance can be responsible #825

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oxzi
Copy link
Member

@oxzi oxzi commented Oct 11, 2024

In theory, this should not happen. This assumption is based on the trust in the database transaction performing the HA realization logic. However, one debugged log let one assume that this happened anyway.

This change mostly signals an error while also explicitly giving up the HA state. Doing so should at least alarm a person reading the logs.


ref/IP/55850

@oxzi oxzi added bug Something isn't working ref/IP labels Oct 11, 2024
@oxzi oxzi requested a review from lippserd October 11, 2024 15:08
@cla-bot cla-bot bot added the cla/signed label Oct 11, 2024
@oxzi oxzi requested a review from julianbrost October 11, 2024 15:24
In theory, this should not happen. This assumption is based on the trust
in the database transaction performing the HA realization logic.
However, one debugged log let one assume that this happened anyway.

This change mostly signals an error while also explicitly giving up the
HA state. Doing so should at least alarm a person reading the logs.
@oxzi oxzi force-pushed the ha-state-both-responsible-reject branch from 90c366b to a38491a Compare October 28, 2024 11:56
@oxzi
Copy link
Member Author

oxzi commented Oct 28, 2024

For the record, this behavior was seen in the linked ticket a short time after something in the database cluster went south.

Furthermore, I have rebased the branch to reflect the latest changes on the main branch.

@oxzi oxzi added this to the 1.3.0 milestone Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla/signed ref/IP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant