Page MenuHomePhabricator

[services] Backup - Add client reactor base classes - write reactor
ClosedPublic

Authored by karol on Mar 24 2022, 1:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 7:35 PM
Unknown Object (File)
Fri, Dec 20, 7:35 PM
Unknown Object (File)
Fri, Dec 20, 7:35 PM
Unknown Object (File)
Fri, Dec 20, 7:34 PM
Unknown Object (File)
Fri, Dec 20, 7:31 PM
Unknown Object (File)
Nov 20 2024, 11:52 AM
Unknown Object (File)
Nov 19 2024, 2:21 AM
Unknown Object (File)
Nov 10 2024, 9:32 AM

Details

Summary

Depends on D3514

Adding client base classes for reactors - write reactor

Test Plan
cd services
yarn run-backup-service

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: jim, max, tomek, varun.
karol edited the summary of this revision. (Show Details)
karol retitled this revision from [services] Backup - Add client reactor base classes - write reactor to [draft] [services] Backup - Add client reactor base classes - write reactor.Mar 24 2022, 2:47 AM

Most of these classes are really similar. Is there a way to share more logic?

services/backup/docker-server/contents/server/src/Reactors/client/base-reactors/ClientWriteReactorBase.h
38–41 ↗(On Diff #10642)

Should we call this earlier?

This revision is now accepted and ready to land.Mar 24 2022, 6:20 AM

Most of these classes are really similar. Is there a way to share more logic?

Yeah, would love to see less copy-paste. Happy for this to be covered in a follow-up task, though. (Let's make sure the task explicitly talks about deduping reactor code.)

In D3515#95613, @palys-swm wrote:

Most of these classes are really similar. Is there a way to share more logic?

I had a thought like this, definitely would go for this separately.

services/backup/docker-server/contents/server/src/Reactors/client/base-reactors/ClientWriteReactorBase.h
38–41 ↗(On Diff #10642)

No, please see my response in https://phabricator.ashoat.com/D3465#95858

I created a task for this:
https://linear.app/comm/issue/ENG-916/consider-pulling-more-mutual-code-from-the-async-reactors

Separately: 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.

karol retitled this revision from [draft] [services] Backup - Add client reactor base classes - write reactor to [services] Backup - Add client reactor base classes - write reactor.Mar 25 2022, 7:17 AM
tomek added inline comments.
services/backup/docker-server/contents/server/src/Reactors/client/base-reactors/ClientWriteReactorBase.h
60–61 ↗(On Diff #10642)

Can we include more context in this log?

This revision is now accepted and ready to land.Mar 28 2022, 9:48 AM
services/backup/docker-server/contents/server/src/Reactors/client/base-reactors/ClientWriteReactorBase.h
60–61 ↗(On Diff #10642)

it will be removed