HomePhabricator
Diffusion Comm 313a81b1919d

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

Description

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

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.

Reviewers: karol-bisztyga, palys-swm

Reviewed By: palys-swm

Subscribers: ashoat, palys-swm, Adrian, atul, karol-bisztyga, yayabosh

Differential Revision: https://phabricator.ashoat.com/D4168

Details

Provenance
maxAuthored on Jun 2 2022, 9:21 PM
Reviewer
tomek
Differential Revision
D4168: [services] Tunnelbroker - Fix arguments table format for new amqp queue
Parents
rCOMMf3474d0d6367: [keyserver] Add mysqldump to Node keyserver Docker container
Branches
Unknown
Tags
Unknown