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

refactor: refactor propose id into <client_id>#<seq_num> #466

Merged
merged 1 commit into from
Oct 9, 2023
Merged

refactor: refactor propose id into <client_id>#<seq_num> #466

merged 1 commit into from
Oct 9, 2023

Conversation

iGxnon
Copy link
Contributor

@iGxnon iGxnon commented Sep 28, 2023

Please briefly answer these questions:

  • what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?)

    This PR refactors ProposeId into <client_id>#<seq_num>, The client_id will be generated by the lease manager(not implemented in this PR), and the seq_num will ensure that all IDs are unique and ordered under the same client_id.

  • what changes does this pull request make?

    As above

  • are there any non-obvious implications of these changes? (does it break compatibility with previous versions, etc)

    No

@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

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

Comparison is base (7e38ff2) 54.13% compared to head (95225c5) 54.13%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #466   +/-   ##
=======================================
  Coverage   54.13%   54.13%           
=======================================
  Files         102      102           
  Lines       17512    17526   +14     
  Branches    17512    17526   +14     
=======================================
+ Hits         9480     9488    +8     
- Misses       7465     7472    +7     
+ Partials      567      566    -1     
Files Coverage Δ
curp-test-utils/src/test_cmd.rs 77.81% <100.00%> (+0.07%) ⬆️
xline-client/src/clients/auth.rs 0.00% <0.00%> (ø)
xline/src/server/xline_server.rs 0.00% <0.00%> (ø)
xline-client/src/clients/lease.rs 0.00% <0.00%> (ø)
xline-client/src/clients/lock.rs 0.00% <0.00%> (ø)
xline-client/src/lib.rs 0.73% <0.00%> (+0.04%) ⬆️
xline/src/client/mod.rs 0.00% <0.00%> (ø)
xline/src/storage/compact/mod.rs 31.34% <0.00%> (+1.34%) ⬆️
xline/src/server/lock_server.rs 0.00% <0.00%> (ø)
xline-client/src/clients/kv.rs 0.00% <0.00%> (ø)
... and 7 more

... and 3 files with indirect coverage changes

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

@iGxnon iGxnon mentioned this pull request Sep 28, 2023
curp/src/client.rs Outdated Show resolved Hide resolved
@themanforfree themanforfree added this to the v0.6.0 milestone Oct 7, 2023
curp-test-utils/src/test_cmd.rs Outdated Show resolved Hide resolved
xline/src/storage/compact/mod.rs Outdated 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

Phoenix500526
Phoenix500526 previously approved these changes Oct 8, 2023
curp-external-api/src/cmd.rs Outdated Show resolved Hide resolved
Signed-off-by: iGxnon <igxnon@gmail.com>
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

@iGxnon iGxnon merged commit c7526ff into xline-kv:master Oct 9, 2023
17 of 18 checks passed
@iGxnon iGxnon deleted the refactor/propose_id branch October 9, 2023 11:15
@Phoenix500526 Phoenix500526 added the Improvement Refactor or optimization, including process, performance or something like that label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Refactor or optimization, including process, performance or something like that
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants