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

tests: add testcase to ensure reader routine terminates #71

Closed
wants to merge 1 commit into from

Conversation

fho
Copy link
Contributor

@fho fho commented Apr 13, 2022

Add a testcase for the bug that the reader go-routine tries to send a
message to the buffered rpc channel but call() terminated because it
read an error from the errors chan or the errors chan was closed.
It cause that reader routine gets stuck forever and does not terminate
when the connection is closed.
More information: #69.

This testcase does not reproduce the issue reliably, but it is triggered
in ~80% of executions.

This PR adds a testcase for the issue #69 and the fix #70.


If you have an idea how to trigger the bug reliably in a testcase, please let me know.

Add a testcase for the bug that the reader go-routine tries to send a
message to the buffered rpc channel but call() terminated because it
read an error from the errors chan or the errors chan was closed.
It cause that reader routine gets stuck forever and does not terminate
when the connection is closed.
More information: rabbitmq#69.

This testcase does not reproduce the issue reliably, but it is triggered
in ~80% of executions.
@lukebakken
Copy link
Contributor

Thanks, I've merged this into #70

@lukebakken lukebakken closed this Apr 14, 2022
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.

None yet

2 participants