mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-09 07:24:41 +00:00
[HER-1800] H3: Incomplete checkpoint listed in combo box
* CheckpointService.java
use static method on Checkpoint for validity check
* Checkpoint.java
throw early-startup exception if attempting resumption of invalid checkpoint
This commit is contained in:
1 parent
899fb6f404
commit
5f76c7ef56
2 files changed
+28
-3
No files matched your search
@@ -298,7 +298,7 @@ public class CheckpointService implements Lifecycle, ApplicationContextAware {
|
||||
Iterator<File> iter = dirsList.iterator();
|
||||
while(iter.hasNext()) {
|
||||
File cpDir = iter.next();
|
||||
if(! (new File(cpDir,Checkpoint.VALIDITY_STAMP_FILENAME)).exists()) {
|
||||
if(!Checkpoint.hasValidStamp(cpDir)) {
|
||||
LOGGER.warning("checkpoint '"+cpDir+"' missing validity stamp file; ignoring");
|
||||
iter.remove();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user