Improve accuracy of praefect dataloss output
Problem to solve
The praefect dataloss
command includes projects that may not have data loss. This should be avoided where possible.
Proposal
Follow-up issue for #2167 (comment 326361174). While the comment contains more extensive reasoning, to summarize it.
- Remove the job counts, only print repos with dataloss
- Only consider dead jobs that were not followed by a successful replication job
- Only consider failed replication jobs from the old primary to the newly elected primary
Failed replication jobs between [2020-01-02 00:00:00 +0000 UTC, 2020-01-03 00:00:00 +0000 UTC):
test-repo/relative-path/1
test-repo/relative-path/2
test-repo/relative-path/3
Edited by James Ramsay (ex-GitLab)