-
Notifications
You must be signed in to change notification settings - Fork 34
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
Fixes #24 - Automatically delete *.bin files after dump creation process #173
Fixes #24 - Automatically delete *.bin files after dump creation process #173
Conversation
Why not simply call |
I'm not even sure that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for attending to this. I can imagine only very few scenarios in which one would need the *.bin files after the dump creation - but I would also suggest to retain a possibility if explicitly requested. Either via the suggestion by @reckart, or via an additional flag/parameter.
@daxenberger I agree: |
Note: this is still in a WIP state. See comments/discussion in #24 |
I have added a WIP label and marked this PR with it. |
thx, that's helpful for other cases as well. |
...chine/src/main/java/de/tudarmstadt/ukp/wikipedia/datamachine/file/DeleteFilesAtShutdown.java
Outdated
Show resolved
Hide resolved
...chine/src/main/java/de/tudarmstadt/ukp/wikipedia/datamachine/file/DeleteFilesAtShutdown.java
Outdated
Show resolved
Hide resolved
...chine/src/main/java/de/tudarmstadt/ukp/wikipedia/datamachine/file/DeleteFilesAtShutdown.java
Show resolved
Hide resolved
.../src/main/java/de/tudarmstadt/ukp/wikipedia/datamachine/dump/xml/SimpleBinaryDumpWriter.java
Outdated
Show resolved
Hide resolved
...chine/src/main/java/de/tudarmstadt/ukp/wikipedia/datamachine/file/DeleteFilesAtShutdown.java
Outdated
Show resolved
Hide resolved
Any updates ? |
@tgalery Vietnam..., lack of time. I'll try to make progress with this PR during the next 1 or 2 weeks. |
- Adds a "path/file deletion watch dog" which guarantees to remove files upon JVM shutdown to avoid left behind (intermediate) files - Adapts the `SimpleBinaryDumpWriter` implementation to register all created `*.bin` at the `DeleteFilesAtShutdown` monitor - Reduces CnP code by adding helper methods to `SimpleBinaryDumpWriter`
99b8db8
to
a435d8b
Compare
SimpleBinaryDumpWriter
implementation to register all created*.bin
at theDeleteFilesAtShutdown
monitorSimpleBinaryDumpWriter
@daxenberger / @reckart Please review the changes in this branch I pushed to solve #24.
Note: This needs proper, manual testing as there isn't any JUnit test for this. This should - ideally - be tested on different OSes, i.e. Linux/Windows/MacOS and under OpenJDK/Oracle JDK 8.
Fixes #24 - Automatically delete *.bin files after dump creation process