-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Ensure a sensible timeout for pgsql commands #61433
Conversation
The psql command has no default timeout, so if the server is not responding or if some lock cannot be obtained, we will be waiting forever. Introduce a default timeout of 60s for all psql commands.
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be made configurable with the default being 60 secs.
There should also be tests to check that the value is operational
Also needs a changelog entry (one liner describing the fix)
@edevil Have you been able to look at implementing @dmurphy18 's suggestion? |
Hey @MKLeb. Sorry but no, I've been a bit busy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a test and a changelog
Congratulations on your first PR being merged! 🎉 |
The psql command has no default timeout, so if the server is not
responding or if some lock cannot be obtained, we will be waiting
forever.
What does this PR do?
Introduce a default timeout of 60s for all psql commands.
Previous Behavior
Module would wait forever for commands to return.
New Behavior
Module will wait at most 60s for psql command to complete.
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.