Skip to content

Conversation

@Liquid369
Copy link
Member

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.

Copy link

@panleone panleone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment but overall I like the PR

Threads are still considered active, even if code is finished executing before being joined, and we do not want to try to join them if the code is not finished executing.
Make sure queue empty before close


Fix queue
@Liquid369 Liquid369 force-pushed the 2023_httpserver_stop branch from 88cefb5 to 9d42360 Compare May 22, 2023 13:52
@panleone panleone added this to the 6.0.0 milestone May 22, 2023
@panleone panleone added the RPC label May 22, 2023
@Liquid369 Liquid369 force-pushed the 2023_httpserver_stop branch from eeb56df to 9d42360 Compare May 22, 2023 18:33
Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 9d42360

Looking good on this one.

Copy link

@panleone panleone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK 9d42360

@Fuzzbawls Fuzzbawls merged commit 3a7ab3d into PIVX-Project:master Jun 13, 2023
@Fuzzbawls Fuzzbawls modified the milestones: 6.0.0, 5.6.0 Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants