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)
Wed, Jun 26, 9:40 AM
Unknown Object (File)
Tue, Jun 25, 9:00 PM
Unknown Object (File)
Mon, Jun 24, 4:11 AM
Unknown Object (File)
Sun, Jun 23, 12:54 PM
Unknown Object (File)
Sat, Jun 22, 7:45 PM
Unknown Object (File)
Sat, Jun 22, 11:24 AM
Unknown Object (File)
Fri, Jun 21, 1:06 PM
Unknown Object (File)
Wed, Jun 19, 11:38 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.