Deal with gaps and forks in commit history

If there are gaps or forks in the commit log history files, raise an exception
and display the possible sets of files in the log files.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=155219410
This commit is contained in:
mmuller 2017-05-05 11:21:17 -07:00 committed by Ben McIlwain
parent 7a3852b5a5
commit 3eef5095d4
4 changed files with 207 additions and 34 deletions

View file

@ -87,7 +87,7 @@ public class RestoreCommitLogsAction implements Runnable {
if (dryRun) {
logger.info("Running in dryRun mode");
}
List<GcsFileMetadata> diffFiles = diffLister.listDiffFiles(fromTime);
List<GcsFileMetadata> diffFiles = diffLister.listDiffFiles(fromTime, null);
if (diffFiles.isEmpty()) {
logger.info("Nothing to restore");
return;