google-nomulus/java/google/registry/backup
guyben 15e03a8b1a Count EppResources that don't have an "old enough" revision
DeleteOldCommitLogs uses the revisions of EPP resources to know which commit logs are still in use.

This means that if the revision list of some EPP resources is corrupt in any way, we might delete commit logs that are still needed.

Here we add a basic sanity check for the revision list: we check it has at least one revision older than the "threshold", where the "threshold" is the oldest date we need to be able to recreate using the commit logs.

If we find an error, we log it (and increment a counter). There's nothing we can to do fix it thought.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=172780418
2017-10-24 16:53:47 -04:00
..
BackupModule.java Add "toTime" parameter to RestoreCommitLogsAction web form 2017-05-17 11:46:18 -04:00
BackupUtils.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
BUILD Check that CommitLogManifest exists before deletion 2017-08-29 17:02:12 -04:00
CommitLogCheckpointAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
CommitLogCheckpointStrategy.java Run automatic Java 8 conversion over codebase 2017-10-10 12:09:41 -04:00
DeleteOldCommitLogsAction.java Count EppResources that don't have an "old enough" revision 2017-10-24 16:53:47 -04:00
ExportCommitLogDiffAction.java Run automatic Java 8 conversion over codebase 2017-10-10 12:09:41 -04:00
GcsDiffFileLister.java Run automatic Java 8 conversion over codebase 2017-10-10 12:09:41 -04:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RestoreCommitLogsAction.java Add a log message indicating that the restore is complete 2017-10-24 16:53:47 -04:00