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

Merged
merged 4 commits into from
Dec 11, 2024

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 requested a review from dorjesinpo October 31, 2024 18:19
@kaikulimu kaikulimu requested a review from a team as a code owner October 31, 2024 18:19
@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
@kaikulimu kaikulimu force-pushed the csl-strong branch 2 times, most recently from 42978dc to 81c759e Compare December 5, 2024 03:00
Signed-off-by: Yuan Jing Vincent Yan <[email protected]>
@kaikulimu kaikulimu assigned dorjesinpo and unassigned kaikulimu Dec 10, 2024
@kaikulimu
Copy link
Collaborator Author

@dorjesinpo Ready for review

Copy link

@bmq-oss-ci bmq-oss-ci bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build 408 of commit b93a928 has completed with FAILURE

@kaikulimu kaikulimu merged commit 0d28d61 into bloomberg:main Dec 11, 2024
29 of 30 checks passed
@kaikulimu kaikulimu deleted the csl-strong branch December 11, 2024 07:09
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