-
-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Background
During dual-write mode, if V2 delete fails after legacy deletion succeeds, the detection ID is marked as "dirty" for later reconciliation.
Current State
- Location:
internal/datastore/v2/repository/dual_write.go:283 - The dirty ID tracking works for migration phase failures
- No periodic reconciliation job exists for dual-write failures during live operation
Proposed Solution
-
Implement a periodic "Retry Dirty IDs" task that:
- Scans for dirty IDs
- Attempts to reconcile V2 state with legacy
- Clears dirty flag on success
- Logs failures for manual investigation
-
Consider running this:
- On a configurable interval (e.g., hourly)
- At startup to catch any pending dirty IDs
Acceptance Criteria
- Periodic reconciliation job implemented
- Configurable interval
- Proper logging and error handling
- Tests for reconciliation logic
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request