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

When initializing new cluster, propose origin peer to consensus #5141

Merged
merged 8 commits into from
Oct 10, 2024

Conversation

ffuugoo
Copy link
Contributor

@ffuugoo ffuugoo commented Sep 25, 2024

Fixes #5138 for new clusters.

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you formatted your code locally using cargo +nightly fmt --all command prior to submission?
  3. Have you checked your code using cargo clippy --all --all-features command?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

src/consensus.rs Outdated Show resolved Hide resolved
@timvisee
Copy link
Member

We decided to wait with merging for a bit.

We likely want to merge the other patch first: the patch that fixes this on existing clusters by persisting/sharing the origin peer.

src/consensus.rs Outdated Show resolved Hide resolved
@ffuugoo ffuugoo force-pushed the consensus-add-origin-peer branch from d65c395 to 5ec1fed Compare October 8, 2024 08:41
Fix another commit index assert 🙄
@ffuugoo ffuugoo requested a review from timvisee October 10, 2024 09:09
src/consensus.rs Show resolved Hide resolved
tests/consensus_tests/test_cluster_rejoin.py Show resolved Hide resolved
Co-authored-by: Tim Visée <tim+github@visee.me>
@ffuugoo ffuugoo merged commit c6b6555 into dev Oct 10, 2024
17 checks passed
@ffuugoo ffuugoo deleted the consensus-add-origin-peer branch October 10, 2024 17:30
timvisee added a commit that referenced this pull request Nov 8, 2024
Co-authored-by: Tim Visée <tim+github@visee.me>
@timvisee timvisee mentioned this pull request Nov 8, 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.

3 participants