Page MenuHomePhabricator

[services] Rust Integration - Backup - Stop rethrowing in create new backup reactor
ClosedPublic

Authored by karol on Sep 1 2022, 11:54 PM.
Tags
None
Referenced Files
F2102346: D5029.id16457.diff
Tue, Jun 25, 12:08 AM
Unknown Object (File)
Thu, Jun 20, 12:10 PM
Unknown Object (File)
Fri, Jun 14, 9:10 PM
Unknown Object (File)
Thu, Jun 13, 5:34 PM
Unknown Object (File)
Tue, Jun 11, 9:35 PM
Unknown Object (File)
Mon, Jun 3, 10:13 PM
Unknown Object (File)
Sun, May 26, 8:15 PM
Unknown Object (File)
May 16 2024, 11:42 AM

Details

Summary

Depends on D5027

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 create new backup 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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

It builds on my mac, also cargo check works (and the CI error is from rust). Not sure what's going on, I'm going to restart the CI.

This revision is now accepted and ready to land.Sep 5 2022, 7:32 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.