void readTxnLog(LogFile txn) { if (!txn.verify() && onTxnErr == OnTxnErr.THROW) throw new LogTransaction.CorruptTransactionLogException("Some records failed verification. See earlier in log for details.", txn); }
void readTxnLog(LogFile txn) { if (!txn.verify() && onTxnErr == OnTxnErr.THROW) throw new LogTransaction.CorruptTransactionLogException("Some records failed verification. See earlier in log for details.", txn); }
void readTxnLog(LogFile txn) { if (!txn.verify() && onTxnErr == OnTxnErr.THROW) throw new LogTransaction.CorruptTransactionLogException("Some records failed verification. See earlier in log for details.", txn); }
void readTxnLog(LogFile txn) { if (!txn.verify() && onTxnErr == OnTxnErr.THROW) throw new LogTransaction.CorruptTransactionLogException("Some records failed verification. See earlier in log for details.", txn); }
static boolean removeUnfinishedLeftovers(Map.Entry<String, List<File>> entry) { try(LogFile txn = LogFile.make(entry.getKey(), entry.getValue())) { if (txn.verify()) { Throwable failure = txn.removeUnfinishedLeftovers(null); if (failure != null) { logger.error("Failed to remove unfinished transaction leftovers for transaction log {}", txn.toString(true), failure); return false; } return true; } else { logger.error("Unexpected disk state: failed to read transaction log {}", txn.toString(true)); return false; } } } }
static boolean removeUnfinishedLeftovers(Map.Entry<String, List<File>> entry) { try(LogFile txn = LogFile.make(entry.getKey(), entry.getValue())) { if (txn.verify()) { Throwable failure = txn.removeUnfinishedLeftovers(null); if (failure != null) { logger.error("Failed to remove unfinished transaction leftovers for transaction log {}", txn.toString(true), failure); return false; } return true; } else { logger.error("Unexpected disk state: failed to read transaction log {}", txn.toString(true)); return false; } } } }
static boolean removeUnfinishedLeftovers(Map.Entry<String, List<File>> entry) { try(LogFile txn = LogFile.make(entry.getKey(), entry.getValue())) { if (txn.verify()) { Throwable failure = txn.removeUnfinishedLeftovers(null); if (failure != null) { logger.error("Failed to remove unfinished transaction leftovers for transaction log {}", txn.toString(true), failure); return false; } return true; } else { logger.error("Unexpected disk state: failed to read transaction log {}", txn.toString(true)); return false; } } } }