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)
Sat, Nov 23, 12:50 PM
Unknown Object (File)
Wed, Nov 20, 4:31 PM
Unknown Object (File)
Wed, Nov 20, 4:31 PM
Unknown Object (File)
Thu, Nov 14, 8:58 AM
Unknown Object (File)
Tue, Oct 29, 7:29 AM
Unknown Object (File)
Oct 26 2024, 2:58 AM
Unknown Object (File)
Oct 20 2024, 2:05 AM
Unknown Object (File)
Oct 13 2024, 1:35 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
No Lint Coverage
Unit
No Test Coverage

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