Page MenuHomePhabricator

[services] Blob - Add holder to the blob DB if data exists
ClosedPublic

Authored by karol on Apr 22 2022, 5:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 9:06 AM
Unknown Object (File)
Sun, Oct 27, 4:23 AM
Unknown Object (File)
Oct 13 2024, 11:37 AM
Unknown Object (File)
Oct 13 2024, 11:37 AM
Unknown Object (File)
Oct 13 2024, 11:37 AM
Unknown Object (File)
Oct 13 2024, 11:37 AM
Unknown Object (File)
Oct 13 2024, 11:37 AM
Unknown Object (File)
Oct 13 2024, 11:34 AM

Details

Summary

Depends on D3801

If the data already exists in the blob, we just want to add a new holder pointing to an existing hash.

Test Plan

Like in D3535 and hardcode fixed data hash in the client code, upload twice to the blob and see if it works as expected: it should upload the data only once and add both blobs pointing to the same hash to the database

Diff Detail

Repository
rCOMM Comm
Branch
bb
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

karol edited the test plan for this revision. (Show Details)
karol added a reviewer: tomek.
tomek added inline comments.
services/blob/src/Reactors/server/PutReactor.h
81–91

This doesn't make sense to check the same condition twice. We can also consider reducing the indentation here, but I'm not sure if it's beneficial

This revision is now accepted and ready to land.Apr 26 2022, 10:24 AM

Note that @palys-swm's comment has not been addressed

tomek requested changes to this revision.Apr 29 2022, 8:10 AM

@karol-bisztyga to your queue - please remove the if

This revision now requires changes to proceed.Apr 29 2022, 8:10 AM
ashoat edited reviewers, added: ashoat; removed: tomek.
This revision is now accepted and ready to land.May 4 2022, 7:59 AM
This revision was automatically updated to reflect the committed changes.
karol marked an inline comment as done.