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

Open
wants to merge 46 commits into
base: 3006.x
Choose a base branch
from

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 dismissed s0undt3ch’s stale review May 22, 2024 19:37

Refractored a lot of the objectionable code, requires a new review

@dmurphy18 dmurphy18 requested review from dwoz and removed request for whytewolf May 22, 2024 19:38
@dmurphy18
Copy link
Contributor Author

@s0undt3ch @dwoz Can you re-review, refactored the objectionable code in SIGTERM handling

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

4 participants