Repository navigation
Expose data corruptted api for scrubber integration test - #479
JacksonYao287 wants to merge 2 commits into
Conversation
eab6749 to
48cb0fc
Compare
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## stable/v4.x #479 +/- ##
==============================================
Coverage ? 54.75%
==============================================
Files ? 40
Lines ? 7046
Branches ? 955
==============================================
Hits ? 3858
Misses ? 2773
Partials ? 415 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| response.send(Pistache::Http::Code::Ok, resp); | ||
| } | ||
|
|
||
| void HttpManager::inject_corruption(const Pistache::Rest::Request& request, Pistache::Http::ResponseWriter response) { |
There was a problem hiding this comment.
Can we make it seperate API:
- local_delete_shard_meta (shard_id)
- local_delete_blob (blob_id)
- local_replace_blob(blob_id, blob_header, blob_data)
The last one can be enhance later into the api that used for replacing corrupted object locally. You can start with assert(new_len <= original_len) to ensure inplace update is possible
There was a problem hiding this comment.
I would suggest to keep it like this for now since I want to use it only for scrubber integration test.
after we are clear about what functionalities we want / how to audit / how to prevent these restful apis from being abused, then we can have a seperate PR to make those change.
48cb0fc to
a0dc6fb
Compare
|
I cherry-pick |
|
then can we make this pr into v5? or into another dev branches? if this PR is still a testing/draft |
|
v5 is now being tested by storage hammer and not stable yet. I don for the |
|
sure yes lets add the |
No description provided.