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
F3536746: D4168.id13258.diff
Wed, Dec 25, 6:50 PM
F3536358: D4168.id13326.diff
Wed, Dec 25, 6:32 PM
F3536314: D4168.id13299.diff
Wed, Dec 25, 6:17 PM
F3536303: D4168.id13308.diff
Wed, Dec 25, 6:13 PM
F3531255: D4168.diff
Wed, Dec 25, 6:55 AM
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

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
Branch
fix-amqp-queue-arguments-to-int
Lint
No Lint Coverage
Unit
No Test Coverage

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.