Details
Created a blob with a few holders and called this endpoint to remove them one by one.
Calling GET before returns HTTP 200, after deleting returns HTTP 404 as expected.
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
services/blob/src/http/handlers/blob.rs | ||
---|---|---|
93–95 ↗ | (On Diff #25217) | This is tracked by https://linear.app/comm/issue/ENG-414/prepare-blob-service-to-handle-cleanup |
services/blob/src/http/handlers/blob.rs | ||
---|---|---|
118 ↗ | (On Diff #25217) | For debugging, this might be nice. Will probably need to borrow / clone &blob_hash earlier. If this always expected to be empty, we should probably emit the error. |
services/blob/src/http/handlers/blob.rs | ||
---|---|---|
96–111 ↗ | (On Diff #25217) | It is theoretically possible for someone to add a new holder between these operations. This is an edge case and fixing it won't be easy. |
services/blob/src/http/handlers/blob.rs | ||
---|---|---|
96–111 ↗ | (On Diff #25217) | Yes, unfortunately there is a possibility. |
118 ↗ | (On Diff #25217) | Good idea for the debug! here.
No, if it's not empty, it means there are still references to the S3 object so we delete the reference (holder) only and not the object itself |