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

Prevent lazy comment fetching from failing if file gets deleted #2661

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

vinistock
Copy link
Member

Motivation

Due to concurrency, there are situations where we may try to lazily fetch comments for an entry right after it was deleted from disk, but before we fully removed the entry from the index. In those cases, we don't want to fail.

Implementation

Started rescuing from missing files.

Automated Tests

Added a test that fails without the fix.

@vinistock vinistock added bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes labels Oct 3, 2024
@vinistock vinistock self-assigned this Oct 3, 2024
@vinistock vinistock requested a review from a team as a code owner October 3, 2024 13:38
@vinistock vinistock requested review from andyw8 and alexcrocha October 3, 2024 13:38
@vinistock vinistock force-pushed the vs-prevent-lazy-comment-fetching-from-failing branch from 88e9aac to 61a88a5 Compare October 3, 2024 14:46
@vinistock vinistock enabled auto-merge (squash) October 3, 2024 14:46
@vinistock vinistock merged commit 9154bfc into main Oct 3, 2024
35 checks passed
@vinistock vinistock deleted the vs-prevent-lazy-comment-fetching-from-failing branch October 3, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants