Skip to content

qa: intermittent failure in p2p_orphan_handling.py #35336

Closed

Description

@Sjors

Observed in #33966

https://github.com/bitcoin/bitcoin/actions/runs/26181992198/job/77027331116?pr=33966

node0 2026-05-20T19:14:29.962535Z (mocktime: 2026-05-20T19:14:29Z) [msghand] [net.cpp:4123] [PushMessage] [net] sending wtxidrelay (0 bytes) peer=1 
 node0 2026-05-20T19:14:29.962550Z (mocktime: 2026-05-20T19:14:29Z) [net] [logging/timer.h:58] [Log] [lock] ContendedLock: lock contention pnode->cs_vSend, net.cpp:2088 started 
 node0 2026-05-20T19:14:29.962567Z (mocktime: 2026-05-20T19:14:29Z) [net] [logging/timer.h:58] [Log] [lock] ContendedLock: lock contention pnode->cs_vSend, net.cpp:2088 completed (0μs) 
 node0 2026-05-20T19:14:29.962582Z (mocktime: 2026-05-20T19:14:29Z) [msghand] [net.cpp:4123] [PushMessage] [net] sending sendaddrv2 (0 bytes) peer=1 
 node0 2026-05-20T19:14:29.962605Z (mocktime: 2026-05-20T19:14:29Z) [net] [logging/timer.h:58] [Log] [lock] ContendedLock: lock contention pnode->m_sock_mutex, net.cpp:2155 started 
 node0 2026-05-20T19:14:29.962617Z (mocktime: 2026-05-20T19:14:29Z) [net] [logging/timer.h:58] [Log] [lock] ContendedLock: lock contention pnode->m_sock_mutex, net.cpp:2155 completed (6μs) 
 node0 2026-05-20T19:14:29.962630Z (mocktime: 2026-05-20T19:14:29Z) [net] [logging/timer.h:58] [Log] [lock] ContendedLock: lock contention pnode->cs_vSend, net.cpp:2088 started 
 test  2026-05-20T19:14:29.962632Z TestFramework.p2p (DEBUG): Received message from 127.0.0.1:17096: msg_wtxidrelay() 
 node0 2026-05-20T19:14:29.962641Z (mocktime: 2026-05-20T19:14:29Z) [net] [logging/timer.h:58] [Log] [lock] ContendedLock: lock contention pnode->cs_vSend, net.cpp:2088 completed (7μs) 
 node0 2026-05-20T19:14:29.962651Z (mocktime: 2026-05-20T19:14:29Z) [msghand] [net.cpp:4123] [PushMessage] [net] sending verack (0 bytes) peer=1 
 test  2026-05-20T19:14:29.962678Z TestFramework.p2p (DEBUG): Received message from 127.0.0.1:17096: msg_sendaddrv2() 
 node0 2026-05-20T19:14:29.962689Z (mocktime: 2026-05-20T19:14:29Z) [msghand] [net_processing.cpp:3580] [ProcessMessage] [net] received: wtxidrelay (0 bytes) peer=1 
 node0 2026-05-20T19:14:29.962701Z (mocktime: 2026-05-20T19:14:29Z) [msghand] [net_processing.cpp:3580] [ProcessMessage] [net] received: verack (0 bytes) peer=1 
 node0 2026-05-20T19:14:29.962706Z (mocktime: 2026-05-20T19:14:29Z) [msghand] [net_processing.cpp:3836] [ProcessMessage] [net] New inbound peer connected: transport: v1, version: 70016, peer=1 
 node0 2026-05-20T19:14:29.962712Z (mocktime: 2026-05-20T19:14:29Z) [msghand] [net.cpp:4123] [PushMessage] [net] sending sendcmpct (9 bytes) peer=1 
 test  2026-05-20T19:14:29.962731Z TestFramework.p2p (DEBUG): Received message from 127.0.0.1:17096: msg_verack() 
 node0 2026-05-20T19:14:29.962732Z (mocktime: 2026-05-20T19:14:29Z) [msghand] [net.cpp:4123] [PushMessage] [net] sending ping (8 bytes) peer=1 
 node0 2026-05-20T19:14:29.962753Z (mocktime: 2026-05-20T19:14:29Z) [msghand] [net.cpp:4123] [PushMessage] [net] sending getheaders (677 bytes) peer=1 
 node0 2026-05-20T19:14:29.962770Z (mocktime: 2026-05-20T19:14:29Z) [msghand] [net_processing.cpp:5818] [SendMessages] [net] initial getheaders (391) to peer=1 
 test  2026-05-20T19:14:29.962772Z TestFramework.p2p (DEBUG): Received message from 127.0.0.1:17096: msg_sendcmpct(announce=False, version=2) 
 node0 2026-05-20T19:14:29.962789Z (mocktime: 2026-05-20T19:14:29Z) [msghand] [net.cpp:4123] [PushMessage] [net] sending feefilter (8 bytes) peer=1 
 test  2026-05-20T19:14:29.962796Z TestFramework.p2p (DEBUG): Received message from 127.0.0.1:17096: msg_ping(nonce=5da85e7d8f43f9a3) 
 node0 2026-05-20T19:14:29.962814Z (mocktime: 2026-05-20T19:14:29Z) [msghand] [net_processing.cpp:3580] [ProcessMessage] [net] received: getaddr (0 bytes) peer=1 
 test  2026-05-20T19:14:29.962817Z TestFramework.p2p (DEBUG): Send message to 127.0.0.1:17096: msg_pong(nonce=5da85e7d8f43f9a3) 
 node0 2026-05-20T19:14:29.962878Z (mocktime: 2026-05-20T19:14:29Z) [msghand] [net_processing.cpp:3580] [ProcessMessage] [net] received: pong (8 bytes) peer=1 
 test  2026-05-20T19:14:29.962919Z TestFramework.p2p (DEBUG): Received message from 127.0.0.1:17096: msg_getheaders(locator=CBlockLocator(vHave=[18856601646665628207343546142254871264395579676553631364326907199795241703658, 52174947190380787790420333870667536863329043676873360803921409512513693307969, 30479434889269594277522078249072762977714125317771722250098650227476244851841, 43018478643947457973263868886397198153513842595970509525239553399129686890805, 36732812075296054414605465558094915918719272708710112986129740249705993587405, 3488781774228350416934893792095320910804794822471084852247347... (msg truncated) 
 test  2026-05-20T19:14:29.962962Z TestFramework.p2p (DEBUG): Received message from 127.0.0.1:17096: msg_feefilter(feerate=00000064) 
 test  2026-05-20T19:14:30.011722Z TestFramework.p2p (DEBUG): Send message to 127.0.0.1:17096: msg_ping(nonce=00000000) 
                                       response, status = self._request('POST', self.__url.path, postdata.encode('utf-8'))
                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                     File "/home/admin/actions-runner/_work/bitcoin/bitcoin/test/functional/test_framework/authproxy.py", line 107, in _request
                                       return self._get_response()
                                              ^^^^^^^^^^^^^^^^^^^^
                                     File "/home/admin/actions-runner/_work/bitcoin/bitcoin/test/functional/test_framework/authproxy.py", line 173, in _get_response
                                       raise JSONRPCException({
                                   test_framework.authproxy.JSONRPCException: {'code': -344, 'message': "'testmempoolaccept' RPC took longer than 30.000000 seconds. Consider using larger timeout for calls that take longer to return."} [http_status=None]
                                   During handling of the above exception, another exception occurred:
                                   Traceback (most recent call last):
                                     File "/home/admin/actions-runner/_work/bitcoin/bitcoin/test/functional/test_framework/test_framework.py", line 143, in main
                                       self.run_test()
                                     File "/home/admin/actions-runner/_work/bitcoin/bitcoin/ci_build/test/functional/p2p_orphan_handling.py", line 837, in run_test
                                       self.test_maximal_package_protected()
                                     File "/home/admin/actions-runner/_work/bitcoin/bitcoin/ci_build/test/functional/p2p_orphan_handling.py", line 57, in wrapper
                                       self.generate(self.nodes[0], 1)
                                     File "/home/admin/actions-runner/_work/bitcoin/bitcoin/test/functional/test_framework/test_framework.py", line 666, in generate
                                       blocks = generator.generate(*args, called_by_framework=True, **kwargs)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                     File "/home/admin/actions-runner/_work/bitcoin/bitcoin/test/functional/test_framework/test_node.py", line 416, in generate
                                       return self.generatetoaddress(nblocks=nblocks, address=self.get_deterministic_priv_key().address, maxtries=maxtries, **kwargs)
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                     File "/home/admin/actions-runner/_work/bitcoin/bitcoin/test/functional/test_framework/test_node.py", line 424, in generatetoaddress
                                       return self.__getattr__('generatetoaddress')(*args, **kwargs)
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                     File "/home/admin/actions-runner/_work/bitcoin/bitcoin/test/functional/test_framework/coverage.py", line 50, in __call__
                                       return_val = self.auth_service_proxy_instance.__call__(*args, **kwargs)
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                     File "/home/admin/actions-runner/_work/bitcoin/bitcoin/test/functional/test_framework/authproxy.py", line 133, in __call__
                                       response, status = self._request('POST', self.__url.path, postdata.encode('utf-8'))
                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                     File "/home/admin/actions-runner/_work/bitcoin/bitcoin/test/functional/test_framework/authproxy.py", line 106, in _request
                                       self.__conn.request(method, path, postdata, headers)
                                     File "/usr/lib/python3.12/http/client.py", line 1356, in request
                                       self._send_request(method, url, body, headers, encode_chunked)
                                     File "/usr/lib/python3.12/http/client.py", line 1367, in _send_request
                                       self.putrequest(method, url, **skips)
                                     File "/usr/lib/python3.12/http/client.py", line 1193, in putrequest
                                       raise CannotSendRequest(self.__state)
                                   http.client.CannotSendRequest: Request-sent
 test  2026-05-20T19:15:00.360763Z TestFramework (DEBUG): Closing down network thread 
 test  2026-05-20T19:15:00.410981Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later. 
 test  2026-05-20T19:15:00.413353Z TestFramework (WARNING): Not cleaning up dir /tmp/test_runner_₿_🏃_20260520_191342/p2p_orphan_handling_258 
 test  2026-05-20T19:15:00.413391Z TestFramework (ERROR): Test failed. Test logging available at /tmp/test_runner_₿_🏃_20260520_191342/p2p_orphan_handling_258/test_framework.log 

Activity

  1. maflcko commented on May 21, 2026

    @maflcko
    Member

    dupe of #34731

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions