Skip to main content

Module maintenance

Module maintenance 

Source
Expand description

Worker-owned series-index reconciliation and publication.

Structsยง

ReconcileStats ๐Ÿ”’
UnpublishedSeriesFiles ๐Ÿ”’
Retires newly completed series files unless their snapshot is published.

Functionsยง

build_index_version ๐Ÿ”’
Builds a changed snapshot, retaining reusable indexes and removing obsolete coverage. Returns None when no range or series indexes were added or removed.
persist_index_catalogs ๐Ÿ”’
Writes changed catalogs in a stable order; the two writes are not atomic together.
prune_index_version ๐Ÿ”’
Prunes obsolete metadata without building indexes or retiring published handles. Returns None without cloning the current version when no entries need removal. Physical range deletion belongs to the SST purger; series handles are retired only after the cleaned catalogs and snapshot have been published successfully.
publish_index_version ๐Ÿ”’
Publishes the snapshot and retires series files absent from the new version.
reconcile_series_indexes ๐Ÿ”’
Reconciles indexes for one region snapshot, persists catalogs, then atomically publishes it.