-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add seal shard api #81
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #81 +/- ##
==========================================
+ Coverage 81.31% 83.90% +2.58%
==========================================
Files 31 31
Lines 1204 1261 +57
Branches 99 100 +1
==========================================
+ Hits 979 1058 +79
+ Misses 173 154 -19
+ Partials 52 49 -3
☔ View full report in Codecov by Sentry. |
lgtm,it will be more clear once put/get blob pr is merged and rebase on that. |
Add test to seal shard with recovery.
358918d
to
b688a69
Compare
Rebased to latest. Please review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
value.iovs.push_back(iovec(buf_ptr, msg_size)); | ||
|
||
// replicate this seal shard message to PG members; | ||
repl_dev->async_alloc_write(header, sisl::blob{}, value, req); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to update the shard's metablk from active to sealed state, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was already there in hs_shard_manager.cpp on commit
dcac87a
to
e7b5c4b
Compare
Similar to create shard.
Add test to create shard, seal and put blob and restart and verify shard is still sealed and put blob fails.