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

Option to force database rebuild #328

Closed
awhitford opened this issue Aug 28, 2015 · 3 comments
Closed

Option to force database rebuild #328

awhitford opened this issue Aug 28, 2015 · 3 comments

Comments

@awhitford
Copy link
Contributor

I recently ran into a problem where the local database was corrupted... (I don't know how that happened, but...) I had to manually drop the dependency-check-data folder and then re-initiate a check (or call update-only).

It would be great if there was a goal like drop or purge that would reset the local database.

Alternatively, an option that automatically dropped/purged upon hitting a database connection problem could be useful to add to the check and aggregate goals. (Obviously this only makes sense if the local h2 database is used.)

@jeremylong
Copy link
Owner

This has been committed to the 1.3.1-SNAPSHOT and will be included in the next release.

@awhitford
Copy link
Contributor Author

Thanks for the quick turnaround.

I noticed that you added a purge for the dc.h2.db file. When I had the problem, I noticed that there was another small file (dc.trace.db). I ended up wiping the whole data directory.

Do you happen to know if that other file should be purged too?

@lock
Copy link

lock bot commented Sep 28, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Sep 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants