Removing invalid System.exit
This commit is contained in:
parent
7957f574f6
commit
928ec603aa
|
@ -280,7 +280,7 @@ public class JournalFilesRepository {
|
||||||
ActiveMQJournalLogger.LOGGER.checkFiles();
|
ActiveMQJournalLogger.LOGGER.checkFiles();
|
||||||
ActiveMQJournalLogger.LOGGER.info(debugFiles());
|
ActiveMQJournalLogger.LOGGER.info(debugFiles());
|
||||||
ActiveMQJournalLogger.LOGGER.seqOutOfOrder();
|
ActiveMQJournalLogger.LOGGER.seqOutOfOrder();
|
||||||
System.exit(-1);
|
throw new IllegalStateException("Sequence out of order");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (journal.getCurrentFile() != null && journal.getCurrentFile().getFileID() <= file.getFileID()) {
|
if (journal.getCurrentFile() != null && journal.getCurrentFile().getFileID() <= file.getFileID()) {
|
||||||
|
@ -356,9 +356,7 @@ public class JournalFilesRepository {
|
||||||
calculatedSize = file.getFile().size();
|
calculatedSize = file.getFile().size();
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
e.printStackTrace();
|
throw new IllegalStateException(e.getMessage() + " file: " + file);
|
||||||
System.out.println("Can't get file size on " + file);
|
|
||||||
System.exit(-1);
|
|
||||||
}
|
}
|
||||||
if (calculatedSize != fileSize) {
|
if (calculatedSize != fileSize) {
|
||||||
ActiveMQJournalLogger.LOGGER.deletingFile(file);
|
ActiveMQJournalLogger.LOGGER.deletingFile(file);
|
||||||
|
|
Loading…
Reference in New Issue