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
Unknown Object (File)
Fri, Dec 20, 4:04 PM
Unknown Object (File)
Fri, Dec 20, 4:04 PM
Unknown Object (File)
Fri, Dec 20, 4:04 PM
Unknown Object (File)
Fri, Dec 20, 4:04 PM
Unknown Object (File)
Fri, Dec 20, 4:00 PM
Unknown Object (File)
Thu, Dec 19, 2:33 AM
Unknown Object (File)
Wed, Dec 4, 4:59 PM
Unknown Object (File)
Wed, Dec 4, 10:56 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
Lint Not Applicable
Unit
Tests Not Applicable

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