Page MenuHomePhabricator

[tunnelbroker] Recover AMQP consumers
ClosedPublic

Authored by bartek on Oct 3 2024, 1:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 11:25 AM
Unknown Object (File)
Wed, Dec 18, 11:24 AM
Unknown Object (File)
Wed, Dec 18, 11:24 AM
Unknown Object (File)
Tue, Nov 26, 8:24 PM
Unknown Object (File)
Mon, Nov 25, 4:07 AM
Unknown Object (File)
Fri, Nov 22, 4:48 PM
Unknown Object (File)
Fri, Nov 22, 4:48 PM
Unknown Object (File)
Fri, Nov 22, 4:48 PM
Subscribers

Details

Summary

When a consumer returns a confirmation error, we can try restoring it without closing the WebSocket session

Depends on D13605

Test Plan

Test plan from D13595 (commtest) sometimes failed on this confirmation. Now it's no longer happening

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Oct 4 2024, 3:58 AM
bartek edited the summary of this revision. (Show Details)
bartek edited the test plan for this revision. (Show Details)
bartek added inline comments.
services/tunnelbroker/src/websockets/mod.rs
254 ↗(On Diff #44886)

Should it be warn or error?

services/tunnelbroker/src/amqp.rs
137–143 ↗(On Diff #44903)

is it needed? should we use it here?

services/tunnelbroker/src/websockets/mod.rs
248 ↗(On Diff #44903)

do we always want to reset or only on connection errors?

254 ↗(On Diff #44886)

maybe error to first have a better view of when and how often this is happening, and later we can change to warn?

This revision is now accepted and ready to land.Oct 7 2024, 2:37 AM
services/tunnelbroker/src/amqp.rs
137–143 ↗(On Diff #44903)

Should be in the next diff

services/tunnelbroker/src/websockets/mod.rs
248 ↗(On Diff #44903)

On all channel errors. Generally all errors here will need Consumer reset, but another condition inside reset_failed_amqp is not a bad idea