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)
Thu, Nov 21, 5:06 AM
Unknown Object (File)
Thu, Nov 21, 12:46 AM
Unknown Object (File)
Wed, Nov 20, 3:08 AM
Unknown Object (File)
Tue, Nov 19, 7:13 PM
Unknown Object (File)
Tue, Nov 5, 6:05 PM
Unknown Object (File)
Oct 13 2024, 4:35 PM
Unknown Object (File)
Oct 13 2024, 4:35 PM
Unknown Object (File)
Oct 13 2024, 4:35 PM

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