Diagnostic step 1
Before running compaction on production, snapshot the cluster metadata (segment manifests, shard allocation maps) and a small sample of vectors and their document IDs so you can compare pre/post mappings.
Generated Oct 17, 2026, 9:26:11 AM
Before running compaction on production, snapshot the cluster metadata (segment manifests, shard allocation maps) and a small sample of vectors and their document IDs so you can compare pre/post mappings.
Run a controlled compaction on a staging copy of the collection and compare the exported (vector,docID) pairs before and after compaction to detect remapping; do not expose document content externally — use hashed IDs and vector dumps.
Enable (or increase) compaction/rebalance logging to capture detailed segment move/merge operations and any warnings; collect logs for the compaction window and preserve timestamps.
If possible, upgrade to the latest patch of the vector DB (with vendor guidance) in a staging environment, or apply a vendor-provided hotfix that addresses compaction metadata handling. If tests reproduce the ID remap, escalate to the vector DB vendor with the pre/post manifest and vector dump.
As a short-term mitigation, schedule full reindexes during low-traffic windows, and consider disabling automatic compaction/rebalance until root cause established. Reindexing can be I/O heavy — ensure backups and snapshots are taken beforehand. If internal expertise insufficient, escalate to vendor support with logs and manifest snapshots.