Page MenuHomePhabricator

[services] Rust Integration - Backup - Stop rethrowing in send log reactor
ClosedPublic

Authored by karol on Sep 1 2022, 11:53 PM.
Tags
None
Referenced Files
F2133073: D5027.id.diff
Fri, Jun 28, 1:55 AM
F2130355: D5027.id.diff
Thu, Jun 27, 3:53 PM
Unknown Object (File)
Wed, Jun 26, 5:08 PM
Unknown Object (File)
Wed, Jun 26, 1:36 AM
Unknown Object (File)
Wed, Jun 26, 1:36 AM
Unknown Object (File)
Wed, Jun 26, 1:36 AM
Unknown Object (File)
Wed, Jun 26, 1:36 AM
Unknown Object (File)
Wed, Jun 26, 1:30 AM

Details

Summary

Depends on D5026

Linear task: https://linear.app/comm/issue/ENG-1727/catch-stdexception-in-base-reactors

We started using rust, and we use functions that return Result. That Result is then converted into a std::exception in c++ when it returns Err. All over the place in the reactors we handle std::runtime_errors but we should go higher in the hierarchy and catch std::exceptions.

Here, I removed rethrowing in send log reactor as it is caught in the base reactors (earlier in this stack).

Test Plan
cd services
yarn run-integration-tests backup

Works as before (of course, you have to start backup and blob services first).

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

This revision is now accepted and ready to land.Sep 5 2022, 7:30 AM
This revision was landed with ongoing or failed builds.Sep 8 2022, 4:10 AM
This revision was automatically updated to reflect the committed changes.