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)
Mon, Nov 18, 12:36 AM
Unknown Object (File)
Sun, Nov 10, 2:34 PM
Unknown Object (File)
Sun, Nov 10, 1:09 PM
Unknown Object (File)
Fri, Nov 8, 10:37 PM
Unknown Object (File)
Fri, Nov 8, 4:16 PM
Unknown Object (File)
Fri, Nov 8, 1:48 PM
Unknown Object (File)
Sat, Nov 2, 2:23 AM
Unknown Object (File)
Wed, Oct 30, 7:43 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
No Lint Coverage
Unit
No Test Coverage

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

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()