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 internal error reporting of FileNotFoundException during Delivery #594

Merged
merged 4 commits into from
Sep 23, 2019

Conversation

fractalwrench
Copy link
Contributor

Goal

FileNotFoundException can occur due to a race where the oldest file is deleted from disk, and the
Error object sends a cached file directly in the request. If this does occur, we should suppress
internal error reports as it is a known issue that we cannot handle.

Design

It is worth noting that redesigning the ErrorStore so that the File is always deserialized into an Error object would prevent this scenario from occurring.

However, given the complexity of these changes and incidence of this situation, it was seen as more appropriate to avoid sending an internal error report instead.

…hen delivering error reports

FileNotFoundException can occur due to a race where the oldest file is deleted from disk, and the
Error object sends a cached file directly in the request. If this does occur, we should suppress
internal error reports as it is a known issue that we cannot handle.
@fractalwrench
Copy link
Contributor Author

Thanks for taking a look @tomlongridge - I've logged a warning in a separate catch block as requested.

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

2 participants