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
F3177269: D4168.diff
Thu, Nov 7, 10:50 PM
Unknown Object (File)
Wed, Nov 6, 11:41 AM
Unknown Object (File)
Sun, Nov 3, 1:31 PM
Unknown Object (File)
Sun, Nov 3, 1:31 PM
Unknown Object (File)
Sun, Nov 3, 1:30 PM
Unknown Object (File)
Sun, Nov 3, 1:30 PM
Unknown Object (File)
Sun, Nov 3, 1:30 PM
Unknown Object (File)
Sat, Nov 2, 3:39 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
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.