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)
Mon, Dec 23, 7:13 AM
Unknown Object (File)
Sun, Dec 15, 8:48 AM
Unknown Object (File)
Sun, Dec 15, 8:48 AM
Unknown Object (File)
Sun, Dec 15, 8:48 AM
Unknown Object (File)
Sun, Dec 15, 8:48 AM
Unknown Object (File)
Sun, Dec 15, 8:48 AM
Unknown Object (File)
Sun, Dec 15, 8:44 AM
Unknown Object (File)
Sat, Nov 30, 7:35 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #11795)

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.