-
Notifications
You must be signed in to change notification settings - Fork 29
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
mqtt + mqtt5 tests together sometimes "hang" forever #250
Comments
You mean your tests does run the But the log you attached are ending with all the mqtt5 client service tasks,
Why do you think it hangs from Can you provide more details? |
Thank you to look into this - retried and found when disabling those tests it does not hang anymore - so I changed the title a bit: |
mqtt_connection_unsub_timeout was my guess because it was the last I saw in the logs, sadly I do not have them anymore - the 10000 lines limit exporting logs... |
did spend some time to reproduce the bug - and I have something.
Here is the logfile. And top shows that it hangs on this test: mqtt_connection_not_resend_packets_on_healthy_connection |
The underlying insta-reconnect is still possible and fixing it with a refactoring of the 311 client is still on our roadmap. But in the meantime, we discovered an error in the 311 client's reconnect timing that was causing instant reconnects instead of minimum delay reconnects. In fixing that error, the CI issues look to have disappeared. We will make the long-term fix/refactor as soon as we can, but for now, I believe the direct issue is addressed. |
Found some strange issue causing the aws-c-mqtt tests to hang. It occurs on randomly on all architectures we (meta-aws) test. Seems this happens a lot with a CodeBuild instance, not that often on my EC2. I only can say that this hang is infinitely (stopped by 8h from CodeBuild).
This script does run the tests: https://github.com/aws4embeddedlinux/meta-aws/blob/999c6b8e077d6e0bc104714e92a437e82187641f/recipes-sdk/aws-c-mqtt/aws-c-mqtt/run-ptest#L288
This test seems to be hanging in this case: mqtt_connection_unsub_timeout
I have just this attached log showing some traces, making me think in the direction of a hanging wait something on a socket?!
version 0.8.4.
aws-c-mqtt_ptest.log
The text was updated successfully, but these errors were encountered: