When retrieving a channel, check connection status and reconnect if needed.
It should be performed once. If multiple tasks want to retrieve a channel, they wait for reconnection result. This is ensured by the RwLock
Depends on D13601
Paths
| Differential D13603 Authored by bartek on Oct 3 2024, 1:36 PM.
Details Summary When retrieving a channel, check connection status and reconnect if needed. Depends on D13601 Test Plan Tested together with the rest of the stack on staging and commtest (example test plan in D13595)
Diff Detail
Event Timelinebartek held this revision as a draft. Herald added subscribers: tomek, ashoat. · View Herald TranscriptOct 3 2024, 1:36 PM2024-10-03 13:36:13 (UTC-7) bartek added a child revision: D13604: [tunnelbroker] Use AMQP wrapper in servers.Oct 3 2024, 1:36 PM2024-10-03 13:36:33 (UTC-7) Harbormaster failed remote builds in B32054: Diff 44883!Oct 3 2024, 1:43 PM2024-10-03 13:43:12 (UTC-7) Harbormaster completed remote builds in B32062: Diff 44893.Oct 4 2024, 3:43 AM2024-10-04 03:43:22 (UTC-7) bartek edited the summary of this revision. (Show Details)Oct 4 2024, 8:19 AM2024-10-04 08:19:51 (UTC-7) bartek added a parent revision: D13601: [tunnelbroker] Create thread-safe wrapper over AMQP connection. Harbormaster completed remote builds in B32068: Diff 44900.Oct 4 2024, 8:35 AM2024-10-04 08:35:39 (UTC-7) This revision is now accepted and ready to land.Oct 7 2024, 1:47 AM2024-10-07 01:47:15 (UTC-7) Closed by commit rCOMM36e96f2b24e9: [tunnelbroker] Implement AMQP reconnect on channel access (authored by bartek). · Explain WhyOct 7 2024, 7:28 AM2024-10-07 07:28:48 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 44900 services/tunnelbroker/src/amqp.rs
|
We should prefer Array type