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

Remove the temporary cache folders created by MapDB before running local pipeline #31

Open
GHLgh opened this issue Apr 7, 2017 · 4 comments
Assignees

Comments

@GHLgh
Copy link
Member

GHLgh commented Apr 7, 2017

When I am testing the code, sometime it will throw out the following exception JVM exception occurred: Header checksum broken. Store was not closed correctly, or is corrupted when I initialize local pipeline. And it can be solved by removing the annotation-cache file refer to pipeline's documentation

Should I check and remove the file before initializing local pipeline, or there is another way to solve it?
@danyaljj @bhargav

@danyaljj
Copy link
Member

danyaljj commented Apr 7, 2017

What version of the pipeline are we using?

@GHLgh
Copy link
Member Author

GHLgh commented Apr 7, 2017

3.1.1

@danyaljj
Copy link
Member

danyaljj commented Apr 7, 2017

The quick fix is to delete the cache, but it's not a good option.
The other (probably better) fix is to set transaction for the pipeline cache, just like how we did it for the client:
CogComp/cogcomp-nlp#392

@bhargav
Copy link
Contributor

bhargav commented Apr 28, 2017

This also happened to Pavan a lot. Most time the JVM is not closed properly which causes this issue. One workaround is to have pipeline methods wrapped with a with-statement so that we can programmatically showdown the JVM. https://docs.python.org/2/library/contextlib.html

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

No branches or pull requests

4 participants