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

enable consumers to implement MasterMain and rename LeadershipManager to remove ZK #672

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

Conversation

mcowgill-stripe
Copy link

@mcowgill-stripe mcowgill-stripe commented May 15, 2024

Context

In order for teams to re-implement the MasterMain functionality of the Mantis Server the ServiceLifecycle functions need to be available to teams. I've changed those to be public, but I'm happy to find another solution or extract an interface here.

UPDATE: I am reverting this part of the change.

Second the LeadershipManagerZKImpl to the best of my knowledge is a ZK independent leadership manager. We are implementing a leader elector based on DynamoDB and are able to use this LeadershipManager without modifying it. This name change is proposing to reflect the fact other teams can reuse the Leadership Manager when implementing their own leader election.

In order to change this name it appears I'll need to deprecate as some tests are failing. I'll consider this in a future PR to expand leader election options in Mantis.

Checklist

  • ./gradlew build compiles code correctly
  • Added new tests where applicable
  • ./gradlew test passes all tests
  • Extended README or added javadocs where applicable

Copy link

github-actions bot commented May 15, 2024

Test Results

134 files  ±0  134 suites  ±0   7m 46s ⏱️ +18s
517 tests ±0  510 ✅  - 1  6 💤 ±0  1 ❌ +1 
518 runs  +1  511 ✅ ±0  6 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit dbd6e88. ± Comparison against base commit 56e0a1c.

♻️ This comment has been updated with latest results.

@mcowgill-stripe mcowgill-stripe force-pushed the mcowgill-changes-for-master-main branch from d98e66a to f10f1c7 Compare May 15, 2024 21:06
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.

None yet

2 participants