-
Notifications
You must be signed in to change notification settings - Fork 18
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
AttributeError: 'NoneType' object has no attribute 'properties' in OversizeMulticastTransferTest #126
Comments
Issue happens even when running test single-threaded, https://github.com/jiridanek/skupper-router/runs/5428006739?check_suite_focus=true#step:27:5701 |
I've tried investigating the test. There seem to be multiple possible issues that can cause the test to fail, and getting over one exposes another. The logs quoted in this message are from a PR with extra logging added. E.g. to log full stracktrace of the exception, and such. AttributeError: 'NoneType' object has no attribute 'properties'https://github.com/jiridanek/skupper-router/runs/5428035645?check_suite_focus=true#step:9:7800 This gets raised from line 739 doing skupper-router/tests/system_tests_policy_oversize_compound.py Lines 737 to 742 in 454942e
I do not see how it is possible for skupper-router/python/qpid_dispatch/management/client.py Lines 186 to 193 in 454942e
Getting a None might be possible only if the management client gets disconnected after it or the other peer (the router) closed connection, while management client waits for its reply, given this code in Proton if self.disconnected and not self._is_closed():
raise ConnectionException(
"Connection %s disconnected: %s" % (self.url, self.disconnected)) That cannot be possible, however, because the previous test has failed (https://github.com/jiridanek/skupper-router/runs/5428035645?check_suite_focus=true#step:9:7749) less than a second prior; there was not enough time for a timeout to occur.
There is a timeout-expired message in INT.A.log, lines 8718-8724, that looks like idle timeout from management client!
multicast/e80: test_80 test error: Timeout Expired net_stable:True sent=10 rcvd=[0, 0, 0, 10] rejected=2 aborted=[0, 2, 0, 0] connection_error:0 send_settled:10https://github.com/jiridanek/skupper-router/runs/5428035645?check_suite_focus=true#step:9:5382 The test code assumes one reject, or up-to-one reject, depending on the specific test skupper-router/tests/system_tests_policy_oversize_compound.py Lines 551 to 583 in 454942e
I tried adjusting this to tolerate two rejects, because that is what I am often seeing when running tests with -j100. Then, I got
(from https://github.com/jiridanek/skupper-router/runs/5432676676?check_suite_focus=true#step:9:4004) |
23: DEBUG root:system_test.py:1439 2022-03-05 11:46:29.951349 OversizeMulticastTransferTest - multicast/e80: FAIL: N closed events in log file did not increment by 1. oBefore: 1, oAfter: 1, iBefore:2, iAfter:4
The test expected only one such line in the "After:", that is, log lines added between start of test and the final evaluation. |
23: DEBUG root:system_test.py:1439 2022-03-05 13:24:38.692392 OversizeMessageTransferTest - e60: test_60 test error: Timeout Expired check_done: sent=10 rcvd=0 rejected=2 aborted=1 connection_error:0 send_settled:10https://github.com/jiridanek/skupper-router/runs/5433073293?check_suite_focus=true#step:9:7705 Sometimes, the messages just don't go through. |
See also #618. |
https://github.com/jiridanek/skupper-router/runs/5426622599?check_suite_focus=true#step:9:5364
The text was updated successfully, but these errors were encountered: