fix(mediorum): skip legacy transient retry ops#339
Conversation
82caf5a to
7b92d0b
Compare
|
Re-validated against current
−99.1% op-log byte growth; 0 suppressible rows persisted vs 17,964 on the control (~1.2 GB/day/node of superseded retry snapshots). This is higher than the earlier 96.64% because the control here carries no source-side cap. #347 doesn't touch the suppressed path — it changes upload intake, while this gates persistence in |
# Conflicts: # pkg/mediorum/crudr/crudr.go # pkg/mediorum/crudr/crudr_test.go
Problem
Legacy peers can still send repeated transcode retry updates for bad uploads.
Those rows are not useful replay history once all rows in the op are:
uploadsupdatebusyorerror> 5Persisting those remote retry snapshots makes
opsgrow quickly while adding no durable bootstrap value.Change
Apply those remote retry ops to current state, but do not persist them into local
ops.The predicate is intentionally narrow:
Transientop320error_count == 5boundaryEvidence
20 clean hourly canary samples, all
ok, from2026-06-03T18:15:21Zthrough2026-06-04T13:15:23Z:Latest 1h sample:
Last-hour classifier:
For the current top 10 toxic uploads, val005 treatment persisted
0retry rows while val008 control persisted48-74rows per upload. Current upload state still replicated on both nodes:status=error, no320, audio analysis not queued.Tests
go test ./pkg/mediorum/crudr -count=1