OCFL / ocfl-java

A Java OCFL implementation
MIT License
16 stars 12 forks source link

Cleanup old revision markers #89

Closed pwinckles closed 1 year ago

pwinckles commented 1 year ago

When using the mutable head extension, revision number markers remain in the revisions directory indefinitely. This becomes problematic if someone creates a huge number of revisions (see https://github.com/fcrepo/fcrepo/issues/2024). One solution to this problem is to attempt to delete non-current revision markers after creating a new revision so that the directory only ever contains at most 2 revision markers. I think this should be safe, but requires further investigation.