@VisibleForTesting void periodicRollForTesting() throws IOException { lock.lock(); try { periodicRoll(); } finally { lock.unlock(); } }
private void tryCleanupLogsOnLoad() { // nothing to cleanup. if (logs.size() <= 1) { return; } // the config says to not cleanup wals on load. if (!conf.getBoolean(EXEC_WAL_CLEANUP_ON_LOAD_CONF_KEY, DEFAULT_EXEC_WAL_CLEANUP_ON_LOAD_CONF_KEY)) { LOG.debug("WALs cleanup on load is not enabled: " + getActiveLogs()); return; } try { periodicRoll(); } catch (IOException e) { LOG.warn("Unable to cleanup logs on load: " + e.getMessage(), e); } }
@VisibleForTesting protected void periodicRollForTesting() throws IOException { lock.lock(); try { periodicRoll(); } finally { lock.unlock(); } }
@VisibleForTesting void periodicRollForTesting() throws IOException { lock.lock(); try { periodicRoll(); } finally { lock.unlock(); } }
@VisibleForTesting protected void periodicRollForTesting() throws IOException { lock.lock(); try { periodicRoll(); } finally { lock.unlock(); } }
private void tryCleanupLogsOnLoad() { // nothing to cleanup. if (logs.size() <= 1) return; // the config says to not cleanup wals on load. if (!conf.getBoolean(EXEC_WAL_CLEANUP_ON_LOAD_CONF_KEY, DEFAULT_EXEC_WAL_CLEANUP_ON_LOAD_CONF_KEY)) { LOG.debug("WALs cleanup on load is not enabled: " + getActiveLogs()); return; } try { periodicRoll(); } catch (IOException e) { LOG.warn("Unable to cleanup logs on load: " + e.getMessage(), e); } }
private void tryCleanupLogsOnLoad() { // nothing to cleanup. if (logs.size() <= 1) { return; } // the config says to not cleanup wals on load. if (!conf.getBoolean(EXEC_WAL_CLEANUP_ON_LOAD_CONF_KEY, DEFAULT_EXEC_WAL_CLEANUP_ON_LOAD_CONF_KEY)) { LOG.debug("WALs cleanup on load is not enabled: " + getActiveLogs()); return; } try { periodicRoll(); } catch (IOException e) { LOG.warn("Unable to cleanup logs on load: " + e.getMessage(), e); } }