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(utils): Ignore errors during store flush #1331

Merged
merged 1 commit into from
May 15, 2018
Merged

Conversation

jan-auer
Copy link
Member

Store.flush() might have failed when an anti virus interferes or there is a problem with the file system. However, flush is usually executed in a setImmediate callback, which cannot throw exceptions. For that reasons, we need to ignore errors ignoring during this flush.

Once we have proper logging set up, we send this error to our log stream.

@jan-auer jan-auer requested a review from kamilogorek as a code owner May 15, 2018 09:05
@jan-auer jan-auer requested a review from HazAT May 15, 2018 09:05
@jan-auer jan-auer self-assigned this May 15, 2018
@jan-auer jan-auer merged commit 84afef5 into next May 15, 2018
@jan-auer jan-auer deleted the fix/store-flush branch May 15, 2018 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants