Page MenuHomePhabricator

[services] Tunnelbroker - Fix arguments table format for new amqp queue
ClosedPublic

Authored by max on May 31 2022, 12:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 9 2024, 3:17 AM
Unknown Object (File)
Nov 8 2024, 1:33 AM
Unknown Object (File)
Nov 8 2024, 12:40 AM
Unknown Object (File)
Nov 7 2024, 10:50 PM
Unknown Object (File)
Nov 6 2024, 11:41 AM
Unknown Object (File)
Nov 3 2024, 1:31 PM
Unknown Object (File)
Nov 3 2024, 1:31 PM
Unknown Object (File)
Nov 3 2024, 1:30 PM

Details

Summary

This diff fixes the following bug:

When the rabbitMQ queue for the tunnelbroker-id is not created (clean rabbitMQ instance) there is an error when creating a new one:

AMQP: Queue creation error: PRECONDITION_FAILED - inequivalent arg 'x-expires' for queue 'tunnelbroker1' in vhost '/'.

We must remove conversion to the string when initializing the queue attribute. That fixes the error.

Test Plan
  1. On the master branch where rabbitMQ Docker container instance was not initialized before (was clean) run yarn run-tunnelbroker-service-dev-mode and get a queue creation error (which is described above in the diff description).
  1. Apply the diff patch and re-run yarn run-tunnelbroker-service-dev-mode. The rabbitMQ queue will be created successfully.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

max held this revision as a draft.
max edited the summary of this revision. (Show Details)
max edited the test plan for this revision. (Show Details)
max added reviewers: karol, tomek.
This revision is now accepted and ready to land.Jun 2 2022, 12:53 AM

Rebase on master, remove it from the stack, because it can be landed as an independent diff.