-
Notifications
You must be signed in to change notification settings - Fork 86
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
Publisher confirm tests fail sporadically #157
Comments
I found some more weird behaviour with afterConfirm. This time i send 6 messages (all delivered succesful), but receive 1 ack(first call of afterConfirm handler), 1 with neither ack nor nack(next call) and then 4 nacks. Furthermore channel.basicPublish always returned 1. Shouldn't it at least increment? |
|
I found it here: rabbitmq-objc-client/RMQClient/RMQChannel.h Line 240 in 9bee6f0
|
It was a mistake. No other client returns anything like this from |
I did an example repo: https://github.com/SimonErm/rabbitmq-objc-client-after-confirm-reproduction . |
I got it working for me by using DipatchSemaphore and registering afterConfirm after publish like it's done in
|
@SimonErm thanks for following-up. I should be able to pick up your repro example in the 2nd half of next week. So it's not been forgotten. |
Curiously I no longer can reproduce. |
This example does not await confirmations, so the method is as safe as if confirms were not used at all. I had a different problem but with XCode 11 it seems to be gone. Oh well :) |
Publisher confirms test sporadically fails for no known reason. This seemingly only happens when a lot of tests are executed at the same time.
Anecdotal evidence leads me to believe it could a dispatch queue interference. That's just a totally unconfirmed hypothesis at the moment. Possibly related to #56.
I am yet to capture traffic when this happens. Now that we have user-provided connection name support (#156), it should be easier to identify this test's connection in both Wireshark and server logs.
The text was updated successfully, but these errors were encountered: