Skip to content
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

[3006.x] - Handling GitFS locking issue and resource loss due to SIGTERM not clearing up #65937

Merged
merged 47 commits into from
Jun 3, 2024

Conversation

dmurphy18
Copy link
Contributor

What does this PR do?

Resolves missing unlock issue with GitFS, that is, lock but no unlock.
Also ensure that when a process is SIGTERM, it cleans up and releases resources held, namely lock files.

Process generated lGitFS lock files, but failed to clear the lock files, and when the process was finally SIGTERM (due to connection being closed by sseapi remote end, 14 minutes later), failed to clean up any resources allocated, namely the GitFS lock files.

What issues does this PR fix or reference?

Fixes:#65816

Previous Behavior

Process left GitFs lock files present which had to be cleaned up by hand.

New Behavior

Process no longer leaves GitFs lock files present, and checks when terminated (SIGTERM) and cleans up any GitFS lock files which it generated.

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.

@dmurphy18 dmurphy18 requested a review from a team as a code owner January 26, 2024 22:40
@dmurphy18 dmurphy18 requested review from dwoz and removed request for a team January 26, 2024 22:40
@dmurphy18 dmurphy18 self-assigned this Jan 26, 2024
@dmurphy18 dmurphy18 added this to the Sulfur v3006.6 milestone Jan 26, 2024
@dmurphy18 dmurphy18 removed this from the Sulfur v3006.6 milestone Feb 1, 2024
@dmurphy18 dmurphy18 requested a review from a team as a code owner May 31, 2024 23:23
@dwoz dwoz merged commit 332379d into saltstack:3006.x Jun 3, 2024
190 checks passed
@dmurphy18 dmurphy18 deleted the fix_65816 branch June 4, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants