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

Merge branch refactor-v0.7.0-new #962

Merged
merged 97 commits into from
Aug 26, 2024

Conversation

bsbds
Copy link
Collaborator

@bsbds bsbds commented Aug 23, 2024

Merge branch refactor-v0.7.0-new into master.

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?)

  • what changes does this pull request make?

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

bsbds added 30 commits July 25, 2024 10:07
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>

chore: add reminder of a revision issue

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
refactor: remove cmd worker and mpmc channel from task manager

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>

refactor: cmd trait

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>

WIP: fix rebase cmd worker

refactor: change command execute from async to sync
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
refactor: curp server

refactor: update auth wrapper with the new stream api

refactor: log persistent

refactor: add new tasks to task manager

WIP: command execution

chore: clippy task manager

chore: clippy client tests mock client

chore: client retry

chore: clippy curp error pattern match

chore: clippy client tests
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>

refactor: implement ResponseSender and ResponseReceiver

chore: clippy response receiver
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>

chore: remove log persistent task from task manager

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>

fix: return immediately when receiving an error on propose

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>

refactor: command execution logic

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>

chore: fix clippy

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>

fix: use propose id for read only cmds

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Request::set_timeout only works on the server side, if the server is not ready, the client may wait indefinitely
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
…tonic doesn't support it

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>

fix: test ce

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
bsbds added 5 commits August 23, 2024 15:54
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
This check is not necessary, the urls are allowed to be empty before
publish

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Because client id may change during retry, the propose id generation must be called for each retry

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
It seems sync wait on a event listener will potentialy cause a deadlock,
we will address this in the future.

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
@bsbds bsbds force-pushed the merge-refactor-v0.7 branch from 60bd0d4 to 97f6232 Compare August 23, 2024 10:24
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
@bsbds bsbds force-pushed the merge-refactor-v0.7 branch from 97f6232 to 1157cbd Compare August 23, 2024 11:29
Copy link

codecov bot commented Aug 23, 2024

Codecov Report

Attention: Patch coverage is 80.09934% with 601 lines in your changes missing coverage. Please review.

Project coverage is 75.19%. Comparing base (e35b35a) to head (5843ee5).
Report is 194 commits behind head on master.

Files Patch % Lines
crates/xline/src/storage/kv_store.rs 72.61% 107 Missing and 42 partials ⚠️
crates/curp/src/server/raw_curp/mod.rs 85.61% 28 Missing and 12 partials ⚠️
crates/curp/src/server/curp_node.rs 85.09% 29 Missing and 9 partials ⚠️
crates/curp/src/server/storage/wal/storage.rs 76.58% 19 Missing and 18 partials ⚠️
crates/curp/src/client/tests.rs 75.20% 22 Missing and 8 partials ⚠️
crates/curp/src/server/cmd_worker/mod.rs 84.35% 20 Missing and 8 partials ⚠️
crates/xline/src/server/command.rs 88.42% 17 Missing and 5 partials ⚠️
crates/curp/src/client/unary.rs 84.29% 14 Missing and 5 partials ⚠️
crates/curp/src/response.rs 76.54% 10 Missing and 9 partials ⚠️
crates/curp/src/server/storage/wal/mock/mod.rs 43.75% 17 Missing and 1 partial ⚠️
... and 33 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #962      +/-   ##
==========================================
- Coverage   75.55%   75.19%   -0.37%     
==========================================
  Files         180      189       +9     
  Lines       26938    28376    +1438     
  Branches    26938    28376    +1438     
==========================================
+ Hits        20353    21337     +984     
- Misses       5366     5750     +384     
- Partials     1219     1289      +70     

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

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
@bsbds bsbds marked this pull request as ready for review August 26, 2024 03:37
@mergify mergify bot requested a review from a team August 26, 2024 03:38
Phoenix500526
Phoenix500526 previously approved these changes Aug 26, 2024
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

@mergify mergify bot requested a review from a team August 26, 2024 04:12
Copy link

mergify bot commented Aug 26, 2024

@bsbds Convert your pr to draft since CI failed

@mergify mergify bot marked this pull request as draft August 26, 2024 04:37
@mergify mergify bot added the CI:fail CI has failed label Aug 26, 2024
@bsbds bsbds force-pushed the merge-refactor-v0.7 branch from 74467e2 to 0079e9c Compare August 26, 2024 07:03
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
@bsbds bsbds force-pushed the merge-refactor-v0.7 branch from 0079e9c to 6fa7400 Compare August 26, 2024 07:07
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
@bsbds bsbds force-pushed the merge-refactor-v0.7 branch from 6fa7400 to 5843ee5 Compare August 26, 2024 07:35
@bsbds bsbds marked this pull request as ready for review August 26, 2024 08:24
@mergify mergify bot removed the CI:fail CI has failed label Aug 26, 2024
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

@mergify mergify bot requested a review from a team August 26, 2024 08:31
@Phoenix500526 Phoenix500526 merged commit d19df09 into xline-kv:master Aug 26, 2024
15 of 16 checks passed
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