test: Properly raise FailedToStartError when rpc shutdown before warmup finished #18561

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:2004-qaFailedToStartConnectionReset changing 1 files +4 −0
  1. MarcoFalke commented at 1:46 PM on April 8, 2020: member
  2. test: Properly raise FailedToStartError when rpc shutdown before warmup finished faede1b293
  3. fanquake added the label Tests on Apr 8, 2020
  4. promag commented at 11:45 AM on April 9, 2020: member

    I think connection reset indicates that the server is not properly closing the connection - I suspect the header Connection: close doesn't reach the client (?) - so this might be some race/corner-case with libevent where the socket is closed too soon?

    This doesn't invalidate this change since the retry attempts is limited.

  5. MarcoFalke commented at 12:18 PM on April 9, 2020: member

    I suspect the header Connection: close doesn't reach the client (?)

    Why not? Wouldn't it throw the same exception if it reached the client?

  6. promag commented at 12:25 PM on April 9, 2020: member

    No, if the header reached the client then it would gracefully close, ECONNRESET means the server closed unexpectedly.

  7. MarcoFalke commented at 12:49 PM on April 9, 2020: member

    It has to throw some kind of exception if the connection is closed without returning a result (json or jsonexception), no?

  8. promag commented at 1:08 PM on April 9, 2020: member

    Yes, but why (or in what case) would it close without returning a result? I mean, once the server accepts the connection, it should send the reply.

  9. MarcoFalke commented at 1:12 PM on April 9, 2020: member

    Yes, but why (or in what case) would it close without returning a result? I mean, once the server accepts the connection, it should send the reply.

    Right. This should probably be fixed in libevent or Bitcoin Core. The patch in this pull is to get the tests work around this issue in the meantime.

  10. promag commented at 1:14 PM on April 9, 2020: member

    The patch in this pull is to get the tests work around this issue in the meantime.

    Yeah I agree with this. I can't reproduce but looking at travis error this looks enough.

    ACK for that reason.

  11. MarcoFalke commented at 1:18 PM on April 9, 2020: member

    It happens only in valgrind, so a race seems most likely

  12. MarcoFalke merged this on Apr 9, 2020
  13. MarcoFalke closed this on Apr 9, 2020

  14. MarcoFalke deleted the branch on Apr 9, 2020
  15. MarcoFalke referenced this in commit b690b24eb2 on Apr 19, 2020
  16. sidhujag referenced this in commit 0d241c80d4 on Apr 20, 2020
  17. jasonbcox referenced this in commit c529d04931 on Jul 30, 2020
  18. DrahtBot locked this on Feb 15, 2022
  19. vijaydasmp referenced this in commit 3a3f41c119 on Aug 17, 2022
  20. vijaydasmp referenced this in commit 62a6057245 on Aug 26, 2022
  21. vijaydasmp referenced this in commit b547c8ea39 on Aug 26, 2022
  22. vijaydasmp referenced this in commit bdc161d439 on Aug 26, 2022
  23. vijaydasmp referenced this in commit 2392543a1c on Aug 29, 2022
  24. vijaydasmp referenced this in commit d43d689fcc on Sep 1, 2022
  25. vijaydasmp referenced this in commit b1e16994d3 on Sep 3, 2022
  26. vijaydasmp referenced this in commit 2e7f28bb89 on Sep 4, 2022
  27. vijaydasmp referenced this in commit b8e5a7c134 on Sep 4, 2022
  28. vijaydasmp referenced this in commit f6f8bca75a on Sep 5, 2022
  29. vijaydasmp referenced this in commit 1794841e7e on Sep 8, 2022
  30. vijaydasmp referenced this in commit 81eda1fb7c on Sep 9, 2022
  31. vijaydasmp referenced this in commit f4d1a7e542 on Sep 11, 2022
  32. vijaydasmp referenced this in commit 969159a5d8 on Sep 11, 2022
  33. vijaydasmp referenced this in commit 2e28e6eee3 on Sep 16, 2022
  34. ogabrielides referenced this in commit 681a4f7022 on Sep 26, 2022
  35. michael-EA referenced this in commit 6f22bb4222 on Oct 22, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 06:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me