chore(optimize): log the pre-existing-drift reconcile

The drift reconcile (empty plan + HEAD>manifest) was silent. Emit a tracing::info
so an operator running optimize on a legacy-drifted graph sees the metadata-only
manifest catch-up, matching the file's house logging style.
This commit is contained in:
Ragnor Comerford 2026-06-08 16:07:23 +02:00
parent 2193a24641
commit e8a7836a6e
No known key found for this signature in database

View file

@ -322,6 +322,13 @@ async fn optimize_one_table(
// a single CAS-guarded `__manifest` commit (atomic; fails clean →
// retried next run), so there is no Phase-B gap and no sidecar is needed.
if head_version > expected_version {
tracing::info!(
target: "omnigraph::optimize",
table = %table_key,
manifest_pin = expected_version,
lance_head = head_version,
"reconciling pre-existing manifest-behind-HEAD drift (metadata-only catch-up)",
);
let state = db.table_store.table_state(&full_path, &ds).await?;
let update = crate::db::SubTableUpdate {
table_key: table_key.clone(),