Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Improve parsing of RabbitMQ-related command line arguments in rodeos - develop #9217

Merged
merged 6 commits into from
Jun 19, 2020

Conversation

revl
Copy link
Contributor

@revl revl commented Jun 17, 2020

Change Description

This commit tightens up parsing of RabbitMQ-related command line arguments (it simplifies the code, improves readability, and adds a comment and a unit test).

Change Type

  • Stability bug fix

On Linux, specifying --stream-rabbits-exchange crashes rodeos with SEGFAULT. On macOS, it was observed that the log contained "RabbitMQ Connected Successfully! Exchange �". Apparently, there's a read access of deleted memory in the onSuccess lambda. It can no longer be reproduced after this commit. If this commit doesn't fix the Linux bus error, I'll investigate it separately.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

A comment to parse_rabbitmq_address in rabbitmq.hpp expands a little bit on the format of the argument of the rodeos options --stream-rabbits and --stream-rabbits-exchange.

This commit tightens up parsing of RabbitMQ-related command line
arguments (it simplifies the code, improves readability, and adds a
comment and a unit test).
@revl revl requested a review from leordev June 17, 2020 20:07
@revl revl changed the title Improve RabbitMQ command line argument parsing - develop Improve parsing of RabbitMQ-related command line arguments in rodeos - develop Jun 17, 2020
Copy link
Contributor

@leordev leordev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

revl added 2 commits June 17, 2020 18:04
Using this type of exchange is a bit more involved than just declaring
the exchange type as 'topic'.
Per request on the pull request
@revl
Copy link
Contributor Author

revl commented Jun 17, 2020

It's been confirmed that this commit also fixes the Linux SEGFAULT.

@ghost
Copy link

ghost commented Jun 17, 2020

It's been confirmed that this commit also fixes the Linux SEGFAULT.

Confirmed to be working fine on Ubuntu 20.04, which previously had segfault issue.

@revl revl merged commit 79b4548 into develop Jun 19, 2020
@revl revl deleted the improve-rabbitmq-address-parsing branch June 19, 2020 01:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants