Page MenuHomePhabricator

[services] Backup - Add server reactor implementations - pull backup reactor
ClosedPublic

Authored by karol on Mar 24 2022, 1:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 15, 6:09 AM
Unknown Object (File)
Sun, Sep 15, 6:08 AM
Unknown Object (File)
Sun, Sep 15, 5:40 AM
Unknown Object (File)
Sun, Sep 15, 5:40 AM
Unknown Object (File)
Sun, Sep 15, 5:40 AM
Unknown Object (File)
Fri, Sep 13, 2:56 AM
Unknown Object (File)
Tue, Sep 3, 2:46 PM
Unknown Object (File)
Tue, Sep 3, 2:46 PM

Details

Summary

Depends on D3466

Add implementation for the pull backup reactor

Test Plan
cd services
yarn run-backup-service

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: max, tomek, varun, jim.
karol retitled this revision from [services] Backup - Add server reactor implementations - pull backup reactor to [draft] [services] Backup - Add server reactor implementations - pull backup reactor.Mar 24 2022, 2:47 AM
tomek added inline comments.
services/backup/docker-server/contents/server/src/Reactors/server/PullBackupReactor.h
25–31 ↗(On Diff #10644)

Is there a reason why this implementation is in the header file?

This revision is now accepted and ready to land.Mar 24 2022, 7:40 AM
services/backup/docker-server/contents/server/src/Reactors/server/PullBackupReactor.h
25–31 ↗(On Diff #10644)

Agree that we should avoid implementations in .h files when possible. If it's addressed in a later diff, would be good to reference that here (or just keep move this stub to a .cpp file to avoid any confusion)

It is accepted as a draft so I removed the draft label and I'm requesting changes once again to keep the appropriate order of events.

services/backup/docker-server/contents/server/src/Reactors/server/PullBackupReactor.h
25–31 ↗(On Diff #10644)

Yes, I was getting weird and frustrating compile errors with templates in the background. Maybe this code can be moved to a CPP file. I don't mind as long as it works. Can we do this separately? https://linear.app/comm/issue/ENG-917/try-to-move-reactors-implementations-to-cpp-files

karol retitled this revision from [draft] [services] Backup - Add server reactor implementations - pull backup reactor to [services] Backup - Add server reactor implementations - pull backup reactor.Mar 25 2022, 7:58 AM

ops, forgot to plan changes, sorry

tomek added inline comments.
services/backup/docker-server/contents/server/src/Reactors/server/PullBackupReactor.h
16 ↗(On Diff #10725)

Why do we need a bidi reactor when pulling backup? Is it due to the authentication?

25–31 ↗(On Diff #10644)

Sure, we can do that

This revision is now accepted and ready to land.Mar 28 2022, 9:51 AM
services/backup/docker-server/contents/server/src/Reactors/server/PullBackupReactor.h
16 ↗(On Diff #10725)

May be an oversight. Even with auth, we needed a simple auth in this case. I think we can change this into a write reactor but maybe in a separate diff since it requires a proto file change.

services/backup/docker-server/contents/server/src/Reactors/server/PullBackupReactor.h
16 ↗(On Diff #10725)