Skip to content

Stability improvements#1

Draft
bartlomiej-korpus wants to merge 3 commits into
masterfrom
stability-improvements
Draft

Stability improvements#1
bartlomiej-korpus wants to merge 3 commits into
masterfrom
stability-improvements

Conversation

@bartlomiej-korpus

Copy link
Copy Markdown

No description provided.

Comment thread lib/lapin/connection.ex
:ok

{:error, reject_error} ->
Logger.debug("Failed rejecting message #{delivery_tag}: #{inspect(reject_error)}")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
Logger.debug("Failed rejecting message #{delivery_tag}: #{inspect(reject_error)}")
Logger.error("Failed rejecting message #{delivery_tag}: #{inspect(reject_error)}")

And we should def have it in Sentry 🤔 Maybe we should let it burn in this case?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If we were to let it burn then this spawn here would bite us again

Comment thread lib/lapin/connection.ex

Enum.each(consumers, fn consumer ->
Process.monitor(consumer.channel.pid)
end)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

There's a single :DOWN handler in this module and it stops and reconnects. The entire connection. This means any consumer or producer dying will take down all the other ones 😄 IMO we should check which process died and only restart this one in case it's one of the channels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants