@earth-app/collegedb
    Preparing search index...

    Function verifyMigrations

    • Checks the journal against the shards. Observational unless repair is set.

      Reports unfinished moves, live rows left on a shard the key moved off, and tombstones the journal does not know. It also reports strandedCopies, live destination rows of an aborted move that equal a row the move journaled, and staleCutovers, tombstones whose move the journal ended as aborted. Both come from a recovery executor that stalled past its lease, and both count against clean. With repair: true it resumes unfinished moves, removes a ghost row only when it equals the archived copy, removes a stranded copy under the same proof, and restores the archived row of a stale cutover when nothing else owns the key. The pass is recorded; purgeRetired waits for a clean one.

      Parameters

      • options: { repair?: boolean } = {}

        repair to act on what it finds

      Returns Promise<VerifyReport>

      The findings

      JOURNAL_NOT_CONFIGURED with several shards and no journalShard

      With repair: RECOVERY_IN_PROGRESS when another recovery holds the lease; RECOVERY_FENCED when this one lost it mid-run

      With repair: MIGRATION_NO_ATOMIC_BATCH when a stale cutover is restored on a shard that does not declare atomicBatch

      1.4.0