@Override public void run() { if (operationLog != null) { LOG.info("Closing operation log {}", operationLog); operationLog.close(); } } }
protected synchronized void cleanupOperationLog(final long operationLogCleanupDelayMs) { // stop the appenders for the operation log String queryId = queryState.getQueryId(); LogUtils.stopQueryAppender(LogDivertAppender.QUERY_ROUTING_APPENDER, queryId); LogUtils.stopQueryAppender(LogDivertAppenderForTest.TEST_QUERY_ROUTING_APPENDER, queryId); if (isOperationLogEnabled) { if (opHandle == null) { LOG.warn("Operation seems to be in invalid state, opHandle is null"); return; } if (operationLog == null) { LOG.warn("Operation [ " + opHandle.getHandleIdentifier() + " ] " + "logging is enabled, " + "but its OperationLog object cannot be found. " + "Perhaps the operation has already terminated."); } else { if (operationLogCleanupDelayMs > 0) { scheduledExecutorService.schedule(new OperationLogCleaner(operationLog), operationLogCleanupDelayMs, TimeUnit.MILLISECONDS); } else { LOG.info("Closing operation log {} without delay", operationLog); operationLog.close(); } } } }
@Override public void run() { if (operationLog != null) { LOG.info("Closing operation log {}", operationLog); operationLog.close(); } } }
protected void cleanupOperationLog() { if (isOperationLogEnabled) { if (operationLog == null) { LOG.error("Operation [ " + opHandle.getHandleIdentifier() + " ] " + "logging is enabled, but its OperationLog object cannot be found."); } else { operationLog.close(); } } }
protected void cleanupOperationLog() { if (isOperationLogEnabled) { if (operationLog == null) { LOG.error("Operation [ " + opHandle.getHandleIdentifier() + " ] " + "logging is enabled, but its OperationLog object cannot be found."); } else { operationLog.close(); } } }
protected void cleanupOperationLog() { if (isOperationLogEnabled) { if (operationLog == null) { LOG.error("Operation [ " + opHandle.getHandleIdentifier() + " ] " + "logging is enabled, but its OperationLog object cannot be found."); } else { operationLog.close(); } } }
protected void cleanupOperationLog() { if (isOperationLogEnabled) { if (operationLog == null) { LOG.error("Operation [ " + opHandle.getHandleIdentifier() + " ] " + "logging is enabled, but its OperationLog object cannot be found."); } else { operationLog.close(); } } }
protected synchronized void cleanupOperationLog(final long operationLogCleanupDelayMs) { // stop the appenders for the operation log String queryId = queryState.getQueryId(); LogUtils.stopQueryAppender(LogDivertAppender.QUERY_ROUTING_APPENDER, queryId); LogUtils.stopQueryAppender(LogDivertAppenderForTest.TEST_QUERY_ROUTING_APPENDER, queryId); if (isOperationLogEnabled) { if (opHandle == null) { LOG.warn("Operation seems to be in invalid state, opHandle is null"); return; } if (operationLog == null) { LOG.warn("Operation [ " + opHandle.getHandleIdentifier() + " ] " + "logging is enabled, " + "but its OperationLog object cannot be found. " + "Perhaps the operation has already terminated."); } else { if (operationLogCleanupDelayMs > 0) { scheduledExecutorService.schedule(new OperationLogCleaner(operationLog), operationLogCleanupDelayMs, TimeUnit.MILLISECONDS); } else { LOG.info("Closing operation log {} without delay", operationLog); operationLog.close(); } } } }