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

Suppress exceptions and backup file #50

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

ntavendale
Copy link

Suppress exceptions and backup file so consuming app will not crash if database file is corrupted.

If app is killed during DB File access file can become corrupt generating a "malformed disk image" exception. If this happens during application startup app can crash.

Added in sink configuration options to

  1. suppress exceptions and not crash.
  2. Back up file using rollover naming conventions and .ERR extension.

Only does back up on initialization. If exception is caused by, say, not having write permissions on the file but still having create permissions for the folder, every attempt to access the file would create a new backup of the same corrupted file.

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.

1 participant