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

Prevent compaction script from failing #1305

Closed
Laurin-W opened this issue Sep 10, 2024 · 2 comments
Closed

Prevent compaction script from failing #1305

Laurin-W opened this issue Sep 10, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Laurin-W
Copy link
Contributor

Sometimes compaction fails which stops the whole cron job script and has caused the disk running full before.
Handling failures, possibly with a wait and retry, and continuing the execution of the remaining datasets, should patch it for now. In the mid-term we are migrating away from the fuseki ACL extension, so duckt-taping is okay.

The script to modify: https://github.com/assemblee-virtuelle/semapps/blob/master/src/jena/fuseki-docker/docker-compact-entrypoint.sh

@Laurin-W Laurin-W added the bug Something isn't working label Sep 10, 2024
@Laurin-W Laurin-W self-assigned this Sep 10, 2024
@srosset81
Copy link
Contributor

One important thing to note: if the compaction fails (for example due to lack of space), the new folder with data (for example /Data-35) may contain no data. In that case, it's important to delete this new folder (/Data-35), otherwise when the script will go through the second part (deleting all old data), it will delete the correct folder and keep the empty one.

@srosset81
Copy link
Contributor

Fixed here fd441da

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants