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
F3399240: D4554.diff
Mon, Dec 2, 2:34 AM
Unknown Object (File)
Fri, Nov 8, 1:04 AM
Unknown Object (File)
Oct 26 2024, 5:06 AM
Unknown Object (File)
Oct 26 2024, 5:06 AM
Unknown Object (File)
Oct 26 2024, 5:06 AM
Unknown Object (File)
Oct 26 2024, 5:06 AM
Unknown Object (File)
Oct 26 2024, 5:05 AM
Unknown Object (File)
Oct 26 2024, 4:56 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 ↗(On Diff #14572)

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 ↗(On Diff #14572)

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