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: switch wal to sync implementation #705

Merged
merged 7 commits into from
May 9, 2024

Conversation

bsbds
Copy link
Collaborator

@bsbds bsbds commented Mar 19, 2024

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

    Switch the curp WAL to synchronous implementation, as the current async version is slow in benchmarks.

  • 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 bsbds marked this pull request as ready for review March 19, 2024 02:58
crates/curp/src/server/storage/wal/codec.rs Outdated Show resolved Hide resolved
crates/curp/src/server/storage/wal/error.rs Outdated Show resolved Hide resolved
crates/curp/src/server/storage/wal/pipeline.rs Outdated Show resolved Hide resolved
crates/curp/src/server/storage/wal/segment.rs Outdated Show resolved Hide resolved
crates/curp/src/server/storage/wal/segment.rs Show resolved Hide resolved
Copy link

mergify bot commented Apr 19, 2024

@bsbds Convert your pr to draft since CI failed

@mergify mergify bot marked this pull request as draft April 19, 2024 01:15
@mergify mergify bot requested a review from a team April 19, 2024 04:37
Copy link

mergify bot commented Apr 19, 2024

@bsbds Convert your pr to draft since CI failed

Copy link

mergify bot commented Apr 19, 2024

@bsbds Convert your pr to draft since CI failed

@bsbds bsbds marked this pull request as ready for review April 19, 2024 09:52
Copy link

mergify bot commented Apr 25, 2024

@bsbds Convert your pr to draft since CI failed

@mergify mergify bot marked this pull request as draft April 25, 2024 00:50
@bsbds bsbds marked this pull request as ready for review April 25, 2024 02:29
@mergify mergify bot marked this pull request as draft April 25, 2024 02:30
@bsbds bsbds marked this pull request as ready for review April 25, 2024 02:58
@mergify mergify bot marked this pull request as draft April 25, 2024 02:59
@Phoenix500526
Copy link
Collaborator

@Mergifyio rebase

Copy link

mergify bot commented Apr 25, 2024

rebase

✅ Branch has been successfully rebased

@Phoenix500526 Phoenix500526 marked this pull request as ready for review April 25, 2024 15:01
Copy link

mergify bot commented Apr 28, 2024

@bsbds Convert your pr to draft since CI failed

@mergify mergify bot marked this pull request as draft April 28, 2024 12:49
@mergify mergify bot requested a review from a team April 28, 2024 12:49
@Phoenix500526
Copy link
Collaborator

@Mergifyio rebase --autosquash

Copy link

mergify bot commented Apr 28, 2024

rebase --autosquash

✅ Branch has been successfully rebased

@Phoenix500526 Phoenix500526 marked this pull request as ready for review April 29, 2024 01:51
@bsbds bsbds force-pushed the wal-sync-impl branch 2 times, most recently from a3768a3 to 7060574 Compare April 29, 2024 08:04
@xline-kv xline-kv deleted a comment from codecov bot Apr 29, 2024
Phoenix500526
Phoenix500526 previously approved these changes Apr 29, 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 April 29, 2024 08:08
@mergify mergify bot requested a review from a team April 30, 2024 08:34
@bsbds bsbds force-pushed the wal-sync-impl branch 2 times, most recently from 3fe0f18 to dff9035 Compare May 6, 2024 06:21
@mergify mergify bot requested a review from a team May 7, 2024 02:16
@mergify mergify bot requested a review from a team May 7, 2024 02:21
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 May 9, 2024 08:02
@Phoenix500526
Copy link
Collaborator

@Mergifyio rebase

bsbds added 7 commits May 9, 2024 08:54
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
…rror

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>
Copy link

mergify bot commented May 9, 2024

rebase

✅ Branch has been successfully rebased

Copy link

codecov bot commented May 9, 2024

Codecov Report

Attention: Patch coverage is 77.67857% with 25 lines in your changes are missing coverage. Please review.

Project coverage is 75.62%. Comparing base (e35b35a) to head (4eed780).
Report is 61 commits behind head on master.

Files Patch % Lines
crates/curp/src/server/storage/wal/segment.rs 68.25% 7 Missing and 13 partials ⚠️
crates/curp/src/server/storage/wal/codec.rs 88.09% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #705      +/-   ##
==========================================
+ Coverage   75.55%   75.62%   +0.06%     
==========================================
  Files         180      187       +7     
  Lines       26938    27441     +503     
  Branches    26938    27441     +503     
==========================================
+ Hits        20353    20752     +399     
- Misses       5366     5419      +53     
- Partials     1219     1270      +51     

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

@mergify mergify bot merged commit 349fad9 into xline-kv:master May 9, 2024
15 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.

3 participants