Page MenuHomePhabricator

[identity] Add exponential backoff to refresh_user_prekeys
ClosedPublic

Authored by bartek on Oct 2 2024, 1:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 9:17 PM
Unknown Object (File)
Wed, Dec 18, 9:34 AM
Unknown Object (File)
Wed, Dec 18, 9:34 AM
Unknown Object (File)
Wed, Dec 18, 9:33 AM
Unknown Object (File)
Wed, Dec 18, 9:33 AM
Unknown Object (File)
Sun, Dec 15, 2:49 PM
Unknown Object (File)
Sun, Dec 15, 2:01 AM
Unknown Object (File)
Sat, Dec 14, 10:42 PM
Subscribers

Details

Summary

Part of ENG-9427.
Added exponential backoff retry counter to RefreshUserPrekeys RPC

Depends on D13568

Test Plan

It's hard to do that on localstack, but I was able to reuse test plan from D13356 to block DB item with transactions and then confirmed that refresh_user_prekeys also retries.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Oct 2 2024, 1:26 AM
This revision is now accepted and ready to land.Oct 2 2024, 12:23 PM
varun added inline comments.
services/identity/src/database/device_list.rs
854 ↗(On Diff #44813)

i had to look at the code to jog my memory, but confirmed that sleep_and_retry respects the retry limit set by ExponentialBackoffConfig::default()