Depends on D5036
In order to be able to handle multiple connections at the same time, we have to store a collection of clients in the rust state instead of having just one.
Here, I'm adding the collection to the get blob client.
Paths
| Differential D5037 Authored by • karol on Sep 2 2022, 3:52 AM.
Tags None Referenced Files
Details Summary Depends on D5036 In order to be able to handle multiple connections at the same time, we have to store a collection of clients in the rust state instead of having just one. Here, I'm adding the collection to the get blob client. Test Plan The backup service will not build successfully because of invalid calls from the c++ but I decided to divide the code so the diffs are not too big. This is fixed in the next diff in the stack - D5038 This will work: cd services/backup/blob_client cargo check
Diff Detail
Event TimelineHerald added a reviewer: • jon. · View Herald TranscriptSep 2 2022, 3:52 AM2022-09-02 03:52:41 (UTC-7) Harbormaster returned this revision to the author for changes because remote builds failed.Sep 2 2022, 3:56 AM2022-09-02 03:56:37 (UTC-7) • karol added a parent revision: D5036: [services] Rust Integration - Backup - c++ - Multiple put clients. • karol added a child revision: D5038: [services] Rust Integration - Backup - c++ - Multiple get clients. Comment ActionsBackup doesn't build but this is explained in the test plan section. tomek added inline comments. This revision now requires changes to proceed.Sep 5 2022, 8:09 AM2022-09-05 08:09:42 (UTC-7) Harbormaster failed remote builds in B11922: Diff 16368!Sep 6 2022, 7:19 AM2022-09-06 07:19:51 (UTC-7) This revision is now accepted and ready to land.Sep 9 2022, 5:11 AM2022-09-09 05:11:33 (UTC-7)
Harbormaster failed remote builds in B12158: Diff 16686!Sep 15 2022, 1:30 AM2022-09-15 01:30:58 (UTC-7) Comment Actions The code looks ok, but I'm confused why this diff introduces things that are replaced later. Especially, raw pointers and unsafe functions. Is this diff going to be updated? Also the CI fails for this diff.
Harbormaster failed remote builds in B12179: Diff 16707!Sep 15 2022, 9:16 AM2022-09-15 09:16:31 (UTC-7) Comment Actions
The CI fails because we don't use the changes from rust in c++ yet, we do that in D5038 but I didn't want to make this diff too big. On the other hand, the diff philosophy is that every single diff should not break the master branch... To speed things up, I'll just land them together, sorry, maybe I made a mistake and should've done that differently.
This revision was landed with ongoing or failed builds.Sep 16 2022, 1:55 AM2022-09-16 01:55:24 (UTC-7) Closed by commit rCOMM7143223f7246: [services] Rust Integration - Backup - Rust - Multiple get clients (authored by • karol). · Explain Why This revision was automatically updated to reflect the committed changes. Harbormaster failed remote builds in B12203: Diff 16738!Sep 16 2022, 1:57 AM2022-09-16 01:57:13 (UTC-7)
Revision Contents
Diff 16744 services/backup/blob_client/src/get_client.rs
services/backup/blob_client/src/lib.rs
|