HomePhabricator
Diffusion Comm c90015c9f446

[identity] Send RETRY for transaction conflicts

Description

[identity] Send RETRY for transaction conflicts

Summary:
Part of ENG-9427.

  • Added a function that checks if DDB error is transaction conflict (we already have one but this one is more opinionated)
  • Added a case to handle_db_error to send retry tonic message instead of unexpected error

Depends on D13567

Test Plan: Simulated TransactionConflictException DDB error and checked gRPC status code in a UI client

Reviewers: varun, will

Reviewed By: will

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D13568

Details

Provenance
bartekAuthored on Oct 1 2024, 11:55 PM
Reviewer
will
Differential Revision
D13568: [identity] Send RETRY for transaction conflicts
Parents
rCOMMa16ecd11a94d: [identity] Use short aliases in handle_db_error
Branches
Unknown
Tags
Unknown