Buckets:

download
raw
2.68 kB
/**
* The garbage-collection SPI: reclaiming the content blobs no live pointer references any more is a discovered,
* optional-unique capability ({@code jenreg.gc=<name>} selects among installed collectors), kept separate
* from its implementation so the reclamation strategy can change without breaking a caller - and <em>no-op by
* absence</em>: with no module installed, {@code GarbageCollectorProvider.resolve} is empty, nothing is ever
* reclaimed, and the capability surfaces say garbage collection is off. No blob is deleted by a deployment that did
* not opt into a collector. A collector that <em>was</em> explicitly selected but cannot be honoured fails at
* resolution instead, because a silent no-op reads as a healthy idle system while storage grows without bound
* (&sect;9). A {@code GarbageCollector} matches the retention sweeper's shape - {@code plan} is the dry run a
* maintenance console previews, {@code collect} computes and applies - and is handed the pointer roots by its
* caller (always {@code publish}; a blobs-namespace format's declared roots are added by the caller that knows
* them), because which namespaces hold serving pointers is layout knowledge this free primitive deliberately does
* not have. Where naming a root is not enough - a format whose served blobs are reachable only through a stored
* document, so no pointer body names them - that format lends the rest through
* {@code build.jenesis.repository.format.BlobReferences}, and an implementation unions what it is told with the
* hashes it read: the derivation stays with the format, never in the collector.
* Deletion is the one unrecoverable act in the product, so an implementation is held to the invariant
* that a referenced, re-linked or in-flight blob is never deleted; the write path cooperates by clearing the
* collector's {@code gc/condemned/<hash>} marker whenever a pointer links a blob ({@code Publication.link}).
*
* @jenesis.release 25
* @jenesis.pin com.github.ben-manes.caffeine/caffeine 3.2.4 SHA-256/9d9d2cfd681fd9272ded3d27c9930db12f89f732345975aa113ebc223bbf1224
* @jenesis.pin com.google.errorprone/error_prone_annotations 2.49.0 SHA-256/3b1003e51b8ae56fdbd7c71073e81d1683b97e6c4dff5a9151164d59b769d13c
* @jenesis.pin org.jspecify/jspecify 1.0.0 SHA-256/1fad6e6be7557781e4d33729d49ae1cdc8fdda6fe477bb0cc68ce351eafdfbab
* @jenesis.pin org.slf4j/slf4j-api 2.0.18 SHA-256/44508fd1576500688c790b190acdd16fec4f8c79a3e0b900afd70503cf055f55
*/
module build.jenesis.repository.gc {
requires transitive build.jenesis.repository.store;
exports build.jenesis.repository.gc;
uses build.jenesis.repository.gc.GarbageCollectorProvider;
}

Xet Storage Details

Size:
2.68 kB
·
Xet hash:
a3b645404829aea3669a77d6e7a521817bb024a4cd7398f3990b40dbfc3ee3b5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.