Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #2867: [Core][Tests] Cleanup HTTPServer start and stop
9d42360 Cleanup HTTPServer start and stop (Liquid) Pull request description: Lately, we have been spending a lot of time messing with our test cases. We are hitting random errors at various points and it is causing us to waste time constantly fixing and re-running tests in order to be 'ready for review'. After discussion with the other developers, I went and looked into the code and found some tiny improvements that can assist us in not dealing with these cases anymore. Threads are still considered active, even if the code is finished executing before being joined, and we do not want to try to join them if the code is not finished executing. So we are now checking if the threads can be closed and we are doing a little bit better cleanup of 0 > nullptr. Lastly, we want to make sure any queue is empty before closing. To test: The best route is to fork this branch and base it over your master or any branch you can run GitHub actions on, and run the tests several times, as well as running the test-runner.py on your local PC. I have run over 50+ iterations of the tests over the weekend and have not encountered an issue in shutdown since. We still have some issues in `tier_two` tests that may appear, but evaluate the logs for whether or not you are incurring an issue from the `stop_node()` function. ACKs for top commit: Fuzzbawls: ACK 9d42360 panleone: tACK 9d42360 Tree-SHA512: e223ddcb5bdb0946560de56014b1a2d15cd8a4cc21ef917315c53e0df2b6c8218ade4ce2f22868ae7c06eec1b2dfaf706d5161bf6089b3895ff39f0b57f94245
- Loading branch information