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

Propose conf change #437

Merged
merged 18 commits into from
Oct 12, 2023
Merged

Conversation

themanforfree
Copy link
Collaborator

@themanforfree themanforfree commented Aug 30, 2023

Please briefly answer these questions:
described in #306
based on #433 ,xline-kv/curp-proto#10

  • what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?)
    propose config change
  • what changes does this pull request make?
    implement propose_conf_change rpc
  • are there any non-obvious implications of these changes? (does it break compatibility with previous versions, etc)
    no

@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Attention: 308 lines in your changes are missing coverage. Please review.

Comparison is base (ce68124) 53.42% compared to head (2a530df) 52.73%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #437      +/-   ##
==========================================
- Coverage   53.42%   52.73%   -0.70%     
==========================================
  Files         103      104       +1     
  Lines       17763    18156     +393     
  Branches    17763    18156     +393     
==========================================
+ Hits         9490     9574      +84     
- Misses       7706     8011     +305     
- Partials      567      571       +4     
Files Coverage Δ
curp/src/error.rs 54.96% <ø> (+1.17%) ⬆️
curp/src/server/raw_curp/state.rs 93.86% <100.00%> (-0.22%) ⬇️
curp/src/server/spec_pool.rs 92.00% <100.00%> (+0.33%) ⬆️
curp/src/server/storage/db.rs 67.64% <100.00%> (ø)
...urp/src/server/cmd_worker/conflict_checked_mpmc.rs 84.49% <66.66%> (+0.48%) ⬆️
curp/src/server/gc.rs 85.21% <93.75%> (-1.10%) ⬇️
xline/src/server/xline_server.rs 0.00% <0.00%> (ø)
curp/src/log_entry.rs 72.41% <83.33%> (+16.16%) ⬆️
curp/src/server/raw_curp/tests.rs 72.22% <94.59%> (+1.51%) ⬆️
curp/src/members.rs 83.60% <66.66%> (+2.16%) ⬆️
... and 9 more

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@themanforfree themanforfree force-pushed the propose_conf_change branch 3 times, most recently from 460e10c to e3b1d46 Compare September 19, 2023 14:38
@themanforfree themanforfree mentioned this pull request Sep 20, 2023
4 tasks
@themanforfree themanforfree self-assigned this Sep 21, 2023
@themanforfree themanforfree force-pushed the propose_conf_change branch 4 times, most recently from 88de603 to 7d7bafd Compare September 26, 2023 01:10
@themanforfree themanforfree marked this pull request as ready for review September 26, 2023 01:13
@themanforfree themanforfree force-pushed the propose_conf_change branch 3 times, most recently from 35464d6 to c0636cb Compare September 26, 2023 14:45
curp/src/rpc/connect.rs Outdated Show resolved Hide resolved
curp/src/server/raw_curp/log.rs Outdated Show resolved Hide resolved
curp/src/server/raw_curp/mod.rs Show resolved Hide resolved
curp/src/members.rs Show resolved Hide resolved
curp/src/rpc/connect.rs Show resolved Hide resolved
curp/src/rpc/connect.rs Outdated Show resolved Hide resolved
curp/src/rpc/connect.rs Show resolved Hide resolved
curp/src/rpc/mod.rs Outdated Show resolved Hide resolved
curp/src/rpc/mod.rs Outdated Show resolved Hide resolved
curp/src/rpc/mod.rs Outdated Show resolved Hide resolved
curp/src/server/cmd_board.rs Outdated Show resolved Hide resolved
curp/src/server/cmd_board.rs Outdated Show resolved Hide resolved
curp/src/server/cmd_worker/mod.rs Show resolved Hide resolved
curp/src/server/curp_node.rs Show resolved Hide resolved
curp/src/server/raw_curp/mod.rs Show resolved Hide resolved
curp/src/server/raw_curp/mod.rs Outdated Show resolved Hide resolved
curp/src/server/raw_curp/state.rs Outdated Show resolved Hide resolved
@themanforfree themanforfree added this to the v0.6.0 milestone Oct 7, 2023
curp/src/server/cmd_board.rs Outdated Show resolved Hide resolved
curp/tests/server.rs Outdated Show resolved Hide resolved
curp/tests/server.rs Show resolved Hide resolved
curp/src/server/raw_curp/mod.rs Show resolved Hide resolved
@Phoenix500526 Phoenix500526 mentioned this pull request Oct 8, 2023
Copy link
Collaborator

@Phoenix500526 Phoenix500526 left a comment

Choose a reason for hiding this comment

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

LGTM

@themanforfree themanforfree force-pushed the propose_conf_change branch 3 times, most recently from 0a53cf4 to 154a5fa Compare October 9, 2023 08:26
fix shutdown and propose_conf_change send to follower

Signed-off-by: themanforfree <[email protected]>
return false when set_last_applied failed

Signed-off-by: themanforfree <[email protected]>
Signed-off-by: themanforfree <[email protected]>
curp/src/server/cmd_board.rs Outdated Show resolved Hide resolved
curp/src/server/cmd_worker/mod.rs Outdated Show resolved Hide resolved
curp/tests/server.rs Outdated Show resolved Hide resolved
curp/src/server/raw_curp/mod.rs Outdated Show resolved Hide resolved
curp/src/server/raw_curp/log.rs Outdated Show resolved Hide resolved
curp/src/server/cmd_board.rs Show resolved Hide resolved
curp/src/server/cmd_worker/mod.rs Show resolved Hide resolved
curp/src/server/raw_curp/mod.rs Outdated Show resolved Hide resolved
curp/src/server/raw_curp/mod.rs Show resolved Hide resolved
curp/src/server/raw_curp/log.rs Show resolved Hide resolved
curp/src/server/raw_curp/mod.rs Outdated Show resolved Hide resolved
curp/src/server/raw_curp/mod.rs Outdated Show resolved Hide resolved
curp/src/server/raw_curp/mod.rs Show resolved Hide resolved
curp/src/server/raw_curp/mod.rs Show resolved Hide resolved
curp/src/server/raw_curp/mod.rs Show resolved Hide resolved
curp/src/server/raw_curp/mod.rs Show resolved Hide resolved
curp/src/server/raw_curp/tests.rs Outdated Show resolved Hide resolved
curp/src/server/gc.rs Show resolved Hide resolved
Copy link
Collaborator

@Phoenix500526 Phoenix500526 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@iGxnon iGxnon left a comment

Choose a reason for hiding this comment

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

LGTM

@Phoenix500526 Phoenix500526 merged commit 601c710 into xline-kv:master Oct 12, 2023
@themanforfree themanforfree deleted the propose_conf_change branch October 12, 2023 03:19
@Phoenix500526 Phoenix500526 added the enhancement New feature or request label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants