Summary
Orchestrator's core value is detecting replication problems. We have no tests that verify problem detection works correctly.
Proposed Tests
- Stop replication on a replica, verify orchestrator detects
ReplicationStopped
- Introduce replication lag (lock tables on replica), verify lag detection
- Set a replica to
read_only=0 (when it should be RO), verify problem detected
- Verify
/api/problems endpoint returns detected problems with correct analysis
- Clear the problem (restart replication), verify it disappears from problems list
Acceptance Criteria
Summary
Orchestrator's core value is detecting replication problems. We have no tests that verify problem detection works correctly.
Proposed Tests
ReplicationStoppedread_only=0(when it should be RO), verify problem detected/api/problemsendpoint returns detected problems with correct analysisAcceptance Criteria