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

fix: Avoid throwing in BeforeNodeWrittenListener on new files #6167

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Aug 5, 2024

Found in sentry.

For new files we get a BeforeNodeWrittenEvent with a NonExistingFile object that might not have a file id yet. We should silently ignore this case. Debug logging added to still be able to trace this down if needed.

@juliushaertl juliushaertl requested a review from mejo- August 5, 2024 08:41
@juliushaertl juliushaertl added bug Something isn't working 3. to review labels Aug 5, 2024
Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

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

Nice catch!

@juliushaertl juliushaertl merged commit 56a3caf into main Aug 5, 2024
61 of 63 checks passed
@juliushaertl juliushaertl deleted the fix/not-found-exception branch August 5, 2024 11:52
@juliushaertl
Copy link
Member Author

/backport to stable29

@juliushaertl
Copy link
Member Author

/backport to stable28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants