You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: base/stats_descriptions.go
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -426,6 +426,13 @@ const (
426
426
MetadataMigrationSeqPoisonPillAppliedDesc="The total number of times this node applied the seq-counter poison pill to initiate fallback→primary sequence handoff. Typically 0 or 1 per migration run."
427
427
428
428
MetadataMigrationPassesDesc="The total number of MigrateMetadata range-scan passes executed for this database."
429
+
430
+
MetadataMigrationAbandonedRunsDesc="The total number of metadata migration runs that the "+
431
+
"orchestrator gave up on after the bounded pass loop exhausted itself without a clean pass. "+
432
+
"Runs that exit early via a hard error from MigrateMetadata, or are stopped cooperatively via "+
433
+
"the terminator, are not counted here. This stat specifically captures the \"hit the retry "+
434
+
"ceiling\" failure mode, useful for distinguishing transient/abortive errors from buckets that "+
435
+
"need operator intervention."
429
436
)
430
437
431
438
// DB Replicators stats descriptions (ISGR Specific)
base.WarnfCtx(ctx, "[%s] gave up after %d passes with %d unknown-prefix doc(s) and %d per-doc error(s) on the last pass", metadataMigrationLoggingID, maxPasses, remaining, passErrors)
245
+
ifpromStats!=nil {
246
+
promStats.AbandonedRuns.Add(1)
247
+
}
245
248
returnfmt.Errorf("%s still not clear of metadata after %d passes: %d unknown-prefix doc(s), %d per-doc error(s) remain", ms.Fallback().GetName(), maxPasses, remaining, passErrors)
0 commit comments