[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:
gojomo committed 2010-07-13 02:59:47 +00:00
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();
}