Page MenuHomePhabricator

[services] Backup - Fix dynamoDB item size limit
ClosedPublic

Authored by karol on Jun 22 2022, 3:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 1:35 AM
Unknown Object (File)
Sun, Nov 10, 6:48 PM
Unknown Object (File)
Sun, Nov 10, 12:33 PM
Unknown Object (File)
Sat, Nov 9, 4:19 AM
Unknown Object (File)
Wed, Oct 23, 3:07 AM
Unknown Object (File)
Wed, Oct 23, 3:02 AM
Unknown Object (File)
Wed, Oct 23, 2:49 AM
Unknown Object (File)
Tue, Oct 22, 2:57 PM

Details

Summary

Depends on D4323

linear task: https://linear.app/comm/issue/ENG-1288/properly-handle-the-dynamodb-item-size-limit

Finally, the proper value that is 400KiB (400 * 1024) (not KB) based on the research described in the linked task.

Test Plan

-

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jun 22 2022, 11:25 AM
karol edited the summary of this revision. (Show Details)

rebase

There's a lot more going on here than when I initially accepted. Would love if @palys-swm could take a pass

This revision now requires review to proceed.Jun 30 2022, 6:49 AM
tomek added inline comments.
services/commtest/tests/backup_test.rs
47 ↗(On Diff #14033)

Please reformat the code - some lines seem to be too long

134 ↗(On Diff #14033)

I suggested this somewhere: we should avoid magic numbers like this and instead give them meaningful names. Also, if the variables depend on each other, one should be computed based on the other.

153 ↗(On Diff #14033)

assert_eq

This revision is now accepted and ready to land.Jun 30 2022, 7:28 AM
services/commtest/tests/backup_test.rs
134 ↗(On Diff #14033)

this is resolved in D4326 these changes are going to be landed together anyway

This revision was landed with ongoing or failed builds.Jul 8 2022, 2:31 AM
This revision was automatically updated to reflect the committed changes.