Page MenuHomePhabricator

[services] Dev mode - Set up Blob service
ClosedPublic

Authored by karol on Apr 11 2022, 6:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 12:34 AM
Unknown Object (File)
Sun, Dec 15, 8:27 AM
Unknown Object (File)
Sun, Dec 15, 8:27 AM
Unknown Object (File)
Sun, Dec 15, 8:27 AM
Unknown Object (File)
Sun, Dec 15, 8:27 AM
Unknown Object (File)
Sun, Dec 15, 8:19 AM
Unknown Object (File)
Fri, Dec 13, 6:13 PM
Unknown Object (File)
Wed, Dec 4, 8:49 PM

Details

Summary

Depends on D3690

Modify the code of the blob service so the dev mode that uses the local cloud can be properly launched

Test Plan
cd services
docker-compose down
yarn run-local-cloud
yarn test-blob-service-dev-mode

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 reviewers: tomek, jim.
karol edited the summary of this revision. (Show Details)

updating D3691: [services] Dev mode - Set up Blob service

services/blob/src/AwsTools.cpp
31 ↗(On Diff #11291)
tomek requested changes to this revision.Apr 26 2022, 10:49 AM
tomek added inline comments.
services/blob/src/AwsTools.cpp
31 ↗(On Diff #11291)

Yeah, it looks like we should avoid using compile time flag

This revision now requires changes to proceed.Apr 26 2022, 10:49 AM

I put up a follow-up for avoiding using compile-time flags D3872

To see why it comes as a follow-up, please see https://phabricator.ashoat.com/D3690#107900

In D3691#107905, @karol-bisztyga wrote:

I put up a follow-up for avoiding using compile-time flags D3872

To see why it comes as a follow-up, please see https://phabricator.ashoat.com/D3690#107900

I agree, it really makes sense to do it as a separate diff. But at the same time, I don't agree a followup is the right way to do that. The issue is that we introduce new code here and we know that we need to update it. Writing and reviewing this code is quite wasteful, when it is replaced later. The correct way to do that is to make this change before this diff. I know it is painful to alter the stack, but overall it's a lot more efficient approach.

Not going to bock you on this, but please consider introducing the changes before a diff in future stacks.

services/blob/test/MultiPartUploadTest.cpp
24 ↗(On Diff #11291)

Why we no longer need to specify the region?

This revision is now accepted and ready to land.Apr 29 2022, 5:17 AM

Agree with @palys-swm on diff ordering

Sure, you're right.

services/blob/test/MultiPartUploadTest.cpp
24 ↗(On Diff #11291)

We do it:

config.region = AWS_REGION;

In AwsTools.cpp