Skip to content

Conversation

alenakhineika
Copy link
Collaborator

@alenakhineika alenakhineika commented Feb 7, 2025

Description

Multiple processes may attempt to clean up log files in parallel. A situation can arise where one process tries to read a file that another process has already unlinked. To handle such scenarios, we will catch lstat errors and retry cleaning up to let different processes reach out to different log files.

Checklist

@alenakhineika alenakhineika marked this pull request as ready for review February 7, 2025 13:04
Copy link
Collaborator

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

Yeah, I think this PR will change a lot in the light of #504, I'd probably rebase it against that PR (if we even need to?)

…-log-cleanup-issue

# Conflicts:
#	packages/mongodb-log-writer/src/mongo-log-manager.ts
…-log-cleanup-issue

# Conflicts:
#	packages/mongodb-log-writer/src/mongo-log-manager.ts
@alenakhineika alenakhineika merged commit 7f867ac into main Feb 11, 2025
6 checks passed
@alenakhineika alenakhineika deleted the MONGOSH-1914-parallel-log-cleanup-issue branch February 11, 2025 12:29
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.

3 participants