Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve heartbeat error reason #6708

Merged
merged 1 commit into from Dec 20, 2022

Conversation

lukebakken
Copy link
Collaborator

https://groups.google.com/g/rabbitmq-users/c/gRURlk9E6M0

In the above thread, the user experienced a heartbeat send timeout that was logged as {inet_error, timeout}. The only way to know this was related to heartbeats was to reproduce the issue and do a debug trace. After this change, the error message will be as follows:

2022-12-20 08:57:12.614470-08:00 [error] <0.959.0> closing AMQP connection <0.959.0> (127.0.0.1:52052 -> 127.0.0.1:5672):
2022-12-20 08:57:12.614470-08:00 [error] <0.959.0> {inet_error,{heartbeat_send_error,timeout}}

I grepped the code for cases where inet_error is caught. The one place where this happens is compatible with the change in this patch.

https://groups.google.com/g/rabbitmq-users/c/gRURlk9E6M0

In the above thread, the user experienced a heartbeat send timeout that
was logged as `{inet_error, timeout}`. The only way to know this was
related to heartbeats was to reproduce the issue and do a debug trace.
After this change, the error message will be as follows:

```
2022-12-20 08:57:12.614470-08:00 [error] <0.959.0> closing AMQP connection <0.959.0> (127.0.0.1:52052 -> 127.0.0.1:5672):
2022-12-20 08:57:12.614470-08:00 [error] <0.959.0> {inet_error,{heartbeat_send_error,timeout}}
```

I grepped the code for cases where `inet_error` is caught. The one place
where this happens is compatible with the change in this patch.
@lukebakken lukebakken self-assigned this Dec 20, 2022
@lukebakken lukebakken marked this pull request as ready for review December 20, 2022 17:13
@michaelklishin michaelklishin added this to the 3.11.6 milestone Dec 20, 2022
@michaelklishin michaelklishin merged commit 4fa5d1c into main Dec 20, 2022
@michaelklishin michaelklishin deleted the lukebakken/preserve-heartbeat-error branch December 20, 2022 19:25
michaelklishin added a commit that referenced this pull request Dec 20, 2022
Preserve heartbeat error reason (backport #6708)
michaelklishin added a commit that referenced this pull request Dec 20, 2022
Preserve heartbeat error reason (backport #6708) (backport #6716)
michaelklishin added a commit that referenced this pull request Dec 20, 2022
Preserve heartbeat error reason (backport #6708) (backport #6716) (backport #6718)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants