Page MenuHomePhabricator

[services] Backup - Apply reading log chunk in send log reactor
ClosedPublic

Authored by karol on Apr 4 2022, 8:02 AM.
Tags
None
Referenced Files
F3377406: D3612.diff
Wed, Nov 27, 5:30 AM
Unknown Object (File)
Tue, Nov 26, 1:43 AM
Unknown Object (File)
Sat, Nov 23, 10:04 PM
Unknown Object (File)
Sat, Nov 23, 3:37 PM
Unknown Object (File)
Sat, Nov 23, 2:50 PM
Unknown Object (File)
Thu, Nov 21, 5:06 AM
Unknown Object (File)
Thu, Nov 21, 12:46 AM
Unknown Object (File)
Wed, Nov 20, 3:08 AM

Details

Summary

Depends on D3531

After reading the user id we want to read log chunks

Test Plan

backup service build

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Services build passed and there are services-only changes here.

tomek requested changes to this revision.Apr 5 2022, 9:37 AM
tomek added inline comments.
services/backup/docker-server/contents/server/src/Reactors/server/SendLogReactor.h
47–55 ↗(On Diff #11008)

We probably need a return to avoid throwing

This revision now requires changes to proceed.Apr 5 2022, 9:37 AM
karol added inline comments.
services/backup/docker-server/contents/server/src/Reactors/server/SendLogReactor.h
47–55 ↗(On Diff #11008)

I don't see what's wrong in throwing here - there should never be a state that's not handled, I think this is a good example of an exceptional/unwanted situation.

Side note, effectively there's no difference between returning a grpc error and throwing, both result in terminating the reactor with a proper status (see reactor base class code).

tomek requested changes to this revision.Apr 6 2022, 2:24 AM
tomek added inline comments.
services/backup/docker-server/contents/server/src/Reactors/server/SendLogReactor.h
47–53 ↗(On Diff #11008)
47–55 ↗(On Diff #11008)

Are you sure we always want to throw when LOG_CHUNK state is processed? Because this is what happens now.

I think we need a return as the last statement in case just like we have it in the other reactor.

This revision now requires changes to proceed.Apr 6 2022, 2:24 AM
This revision is now accepted and ready to land.Apr 7 2022, 12:20 AM