0x4b53 / amqp-rpc

🐰 Framework to use RabbitMQ as RPC
MIT License
45 stars 8 forks source link

TestClientRetry fails intermittently #81

Closed bombsimon closed 2 years ago

bombsimon commented 5 years ago

The test for client retry fails intermittently and almost like 50% of the time. Result:

=== RUN   TestClientRetry
2019/10/25 08:14:40 client: got error: Exception (501) Reason: "read tcp 127.0.0.1:39030->127.0.0.1:5672: read: connection reset by peer", will reconnect in 0.5 second(s)
2019/10/25 08:14:40 client: could not publish 96ed5a2b-1406-4abd-bbb8-30eac959e832, retrying: Exception (504) Reason: "channel/connection is not open"
2019/10/25 08:14:40 client: publisher stopped because of error, 96ed5a2b-1406-4abd-bbb8-30eac959e832
2019/10/25 08:14:40 client: got error: Exception (501) Reason: "read tcp 127.0.0.1:39034->127.0.0.1:5672: read: connection reset by peer", will reconnect in 0.5 second(s)
--- FAIL: TestClientRetry (1.08s)
    client_test.go:165: 
            Error Trace:    client_test.go:165
            Error:          An error is expected but got nil.
            Test:           TestClientRetry

Example test run from Travis CI

Had a similar issue with #66 but they don't seem related.

bombsimon commented 5 years ago

Seems to happen more often than not, another Travis build.

bombsimon commented 5 years ago

Restarted latest build 3 times now without success so we currently have no successful build.

bombsimon commented 5 years ago

I cannot reproduce this locally, with or without race, using the Docker installation of RabbitMQ.

bombsimon commented 2 years ago

Haven't seen this in GitHub actions, will close.