Page MenuHomePhabricator

[identity] Add exponential backoff to refresh_user_prekeys
AcceptedPublic

Authored by bartek on Wed, Oct 2, 1:10 AM.
Tags
None
Referenced Files
F2869080: D13569.id44813.diff
Wed, Oct 2, 4:19 PM
F2867849: D13569.diff
Wed, Oct 2, 2:32 PM
F2863189: D13569.id.diff
Wed, Oct 2, 3:36 AM
F2863059: D13569.id44813.diff
Wed, Oct 2, 3:23 AM
F2863023: D13569.id.diff
Wed, Oct 2, 3:22 AM
F2862939: D13569.diff
Wed, Oct 2, 3:21 AM
F2862832: D13569.diff
Wed, Oct 2, 3:11 AM
Subscribers

Details

Reviewers
varun
will
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.Wed, Oct 2, 1:26 AM
This revision is now accepted and ready to land.Wed, Oct 2, 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()