Skip to content

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.

  1. Remove the job counts, only print repos with dataloss
  2. Only consider dead jobs that were not followed by a successful replication job
  3. 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)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information