/** * Remove all logs with logId <= {@code lastLogId}. */ private void removeAllLogs(long lastLogId, String why) { if (logs.size() <= 1) { return; } LOG.info("Remove all state logs with ID less than {}, since {}", lastLogId, why); boolean removed = false; while (logs.size() > 1) { ProcedureWALFile log = logs.getFirst(); if (lastLogId < log.getLogId()) { break; } removeLogFile(log, walArchiveDir); removed = true; } if (removed) { buildHoldingCleanupTracker(); } }
ProcedureWALFile pwf = procedureWALFiles.get(i); out.write("\n <tr>\n <td> "); out.print( pwf.getLogId() ); out.write("</td>\n <td> "); out.print( TraditionalBinaryPrefix.long2String(pwf.getSize(), "B", 1) ); for (ProcedureWALFile cwf:corruptedWALFiles) { out.write("\n <tr>\n <td> "); out.print( cwf.getLogId() ); out.write("</td>\n <td> "); out.print( TraditionalBinaryPrefix.long2String(cwf.getSize(), "B", 1) );
private void removeAllLogs(long lastLogId) { if (logs.size() <= 1) return; if (LOG.isDebugEnabled()) { LOG.debug("Remove all state logs with ID less than " + lastLogId); } while (logs.size() > 1) { ProcedureWALFile log = logs.getFirst(); if (lastLogId < log.getLogId()) { break; } removeLogFile(log); } }
/** * Remove all logs with logId <= {@code lastLogId}. */ private void removeAllLogs(long lastLogId) { if (logs.size() <= 1) return; if (LOG.isTraceEnabled()) { LOG.trace("Remove all state logs with ID less than " + lastLogId); } boolean removed = false; while (logs.size() > 1) { ProcedureWALFile log = logs.getFirst(); if (lastLogId < log.getLogId()) { break; } removeLogFile(log, walArchiveDir); removed = true; } if (removed) { buildHoldingCleanupTracker(); } }
/** * Remove all logs with logId <= {@code lastLogId}. */ private void removeAllLogs(long lastLogId, String why) { if (logs.size() <= 1) { return; } LOG.info("Remove all state logs with ID less than {}, since {}", lastLogId, why); boolean removed = false; while (logs.size() > 1) { ProcedureWALFile log = logs.getFirst(); if (lastLogId < log.getLogId()) { break; } removeLogFile(log, walArchiveDir); removed = true; } if (removed) { buildHoldingCleanupTracker(); } }