Page MenuHomePhabricator

[services] Backup - send log - add case for DB
ClosedPublic

Authored by karol on Jul 18 2022, 7:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 27, 7:05 AM
Unknown Object (File)
Wed, Sep 25, 2:27 AM
Unknown Object (File)
Wed, Sep 25, 2:27 AM
Unknown Object (File)
Wed, Sep 25, 2:27 AM
Unknown Object (File)
Wed, Sep 25, 2:27 AM
Unknown Object (File)
Wed, Sep 25, 2:26 AM
Unknown Object (File)
Wed, Sep 25, 12:07 AM
Unknown Object (File)
Sat, Sep 7, 6:28 AM

Details

Summary

Depends on D4438

We want to handle a situation when we save the records in the database (it didn't work in the tests).
We should set the persistence method to the DB when receiving a "tiny" chunk - "tiny" means below LOG_DATA_SIZE_DATABASE_LIMIT that is 400KiB

Test Plan

full test plan in D4556, for now the service builds

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek requested changes to this revision.Jul 19 2022, 3:27 AM

We want to handle a situation when we save the records in the database (it didn't work in the tests).

Could you explain it a little more? How would we want to handle it? What do you mean by that it didn't work in the test?

services/backup/src/Reactors/server/SendLogReactor.cpp
101–104

Can we make this message more precise? E.g. what bigger means in this case? Is 1KB big enough? Or 1MB? We should make this message helpful when debugging.

This revision now requires changes to proceed.Jul 19 2022, 3:27 AM
In D4554#130404, @palys-swm wrote:

We want to handle a situation when we save the records in the database (it didn't work in the tests).

Could you explain it a little more? How would we want to handle it? What do you mean by that it didn't work in the test?

I missed that we should set the persistence method to the DB when receiving a "tiny" chunk - "tiny" means below LOG_DATA_SIZE_DATABASE_LIMIT that is 400KiB. I will put that in the description.

services/backup/src/Reactors/server/SendLogReactor.cpp
101–104

Sure
tiny here means less than the DB limit (LOG_DATA_SIZE_DATABASE_LIMIT) which is 400KiB
I will update the message.

This revision is now accepted and ready to land.Jul 21 2022, 2:19 AM