feat: add row count mismatch error handling in processMigrationJob and update SQL query to exclude additional graph-related columns

This commit is contained in:
2026-04-16 12:46:55 -05:00
parent 67fb0148ae
commit 0d0511716f
2 changed files with 6 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"context"
"fmt"
"sync"
"sync/atomic"
"time"
@@ -233,5 +234,9 @@ func processMigrationJob(
result.RowsLoaded = atomic.LoadInt64(&rowsLoaded)
result.RowsFailed = atomic.LoadInt64(&rowsFailed)
if result.RowsRead != result.RowsLoaded {
result.Error = fmt.Errorf("Row count mismatch: extracted %d rows but loaded %d rows (failed: %d)", result.RowsRead, result.RowsLoaded, result.RowsFailed)
}
return result
}