Skip to content
This repository was 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
revl merged 6 commits into
developfrom
improve-rabbitmq-address-parsing
Jun 19, 2020
Merged

revl merged 6 commits into
developfrom
improve-rabbitmq-address-parsing

Conversation

@revl

@revl revl commented Jun 17, 2020

Copy link
Copy Markdown
Contributor

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

@leordev leordev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

Comment thread programs/rodeos/streams/rabbitmq.hpp Resolved
Comment thread programs/rodeos/streams/rabbitmq.hpp Resolved
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

revl commented Jun 17, 2020

Copy link
Copy Markdown
Contributor Author

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

@ghost

ghost commented Jun 17, 2020

Copy link
Copy Markdown

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