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

Add seal shard api #81

Merged
merged 2 commits into from
Oct 18, 2023
Merged

Add seal shard api #81

merged 2 commits into from
Oct 18, 2023

Conversation

sanebay
Copy link
Contributor

@sanebay sanebay commented Oct 16, 2023

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.

@sanebay sanebay requested review from hkadayam, szmyd, zichanglai, xiaoxichen and yamingk and removed request for szmyd October 16, 2023 18:38
@codecov-commenter
Copy link

codecov-commenter commented Oct 16, 2023

Codecov Report

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

Comparison is base (98032d3) 81.31% compared to head (e7b5c4b) 83.90%.
Report is 2 commits behind head on main.

❗ 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     
Files Coverage Δ
src/include/homeobject/blob_manager.hpp 100.00% <ø> (+50.00%) ⬆️
src/lib/homeobject_impl.hpp 100.00% <ø> (ø)
src/lib/homestore_backend/hs_homeobject.hpp 63.63% <ø> (ø)
...c/lib/homestore_backend/tests/test_home_object.cpp 95.55% <100.00%> (+0.59%) ⬆️
src/lib/memory_backend/mem_homeobject.hpp 100.00% <ø> (ø)
src/lib/memory_backend/mem_shard_manager.cpp 81.81% <100.00%> (ø)
src/lib/shard_manager.cpp 87.17% <100.00%> (ø)
src/lib/blob_manager.cpp 81.81% <0.00%> (ø)
src/lib/homestore_backend/hs_shard_manager.cpp 86.97% <91.17%> (+1.97%) ⬆️

... and 7 files with indirect coverage changes

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

@zichanglai
Copy link
Contributor

lgtm,it will be more clear once put/get blob pr is merged and rebase on that.

@sanebay sanebay linked an issue Oct 17, 2023 that may be closed by this pull request
Add test to seal shard with recovery.
@sanebay
Copy link
Contributor Author

sanebay commented Oct 17, 2023

lgtm,it will be more clear once put/get blob pr is merged and rebase on that.

Rebased to latest. Please review.

szmyd
szmyd previously approved these changes Oct 17, 2023
Copy link
Collaborator

@szmyd szmyd left a 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);
Copy link
Contributor

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?

Copy link
Contributor Author

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

@sanebay sanebay merged commit f16ed3f into eBay:main Oct 18, 2023
24 checks passed
@sanebay sanebay deleted the ho_shard_seal branch October 18, 2023 00:54
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.

Implement HSHomeObject::_seal
5 participants