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[MQB]: Enable strong consistency CSL and fix leader activeness #495

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kaikulimu
Copy link
Collaborator

@kaikulimu kaikulimu commented Oct 31, 2024

  1. Enable strong consistency by default everywhere we use CSL. Before, it was in eventual consistency everywhere. I updated the unit tests to also test in strong consistency. Most integration tests pass in strong consistency, except a few related to appIds. This proves the race condition around Domain::configure, which @dorjesinpo fixed in Refactoring App registration #493.

  2. I enhanced the resiliency of the elector logic by prohibiting to set leader status directly from e_UNDEFINED to e_ACTIVE. It should always go from e_UNDEFINED -> e_PASSIVE -> e_ACTIVE. Here is a small diagram of the current triggers to leader status transition. I am adding a new transition from e_PASSIVE to e_ACTIVE during ElectorInfo::onHealedFollower() in this PR. I also fixed the logic of some observers to the leader status via the onClusterLeader method.

@kaikulimu kaikulimu changed the title **DO NOT MERGE** Fix[MQB]: Enable strong consistency CSL and fix leader activeness Fix[MQB]: Enable strong consistency CSL and fix leader activeness Nov 11, 2024
@kaikulimu kaikulimu assigned kaikulimu and unassigned dorjesinpo Nov 11, 2024
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.

2 participants