@Override public void logError(Throwable e) { if (backupOp != null) { // Ensure that backup operation is initialized. // If there is an exception before `run` (for example caller is not valid anymore), // backup operation will not be initialized. ensureBackupOperationInitialized(); backupOp.logError(e); } else { ReplicaErrorLogger.log(e, getLogger()); } }
@Override public void logError(Throwable e) { if (backupOp != null) { // Ensure that backup operation is initialized. // If there is an exception before `run` (for example caller is not valid anymore), // backup operation will not be initialized. ensureBackupOperationInitialized(); backupOp.logError(e); } else { ReplicaErrorLogger.log(e, getLogger()); } }
@Override public void onExecutionFailure(Throwable e) { if (backupOp != null) { try { // Ensure that backup operation is initialized. // If there is an exception before `run` (for example caller is not valid anymore), // backup operation will not be initialized. ensureBackupOperationInitialized(); backupOp.onExecutionFailure(e); } catch (Throwable t) { getLogger().warning("While calling operation.onFailure(). op: " + backupOp, t); } } }
@Override public void onExecutionFailure(Throwable e) { if (backupOp != null) { try { // Ensure that backup operation is initialized. // If there is an exception before `run` (for example caller is not valid anymore), // backup operation will not be initialized. ensureBackupOperationInitialized(); backupOp.onExecutionFailure(e); } catch (Throwable t) { getLogger().warning("While calling operation.onFailure(). op: " + backupOp, t); } } }
int partitionId = getPartitionId(); InternalPartitionService partitionService = nodeEngine.getPartitionService(); ILogger logger = getLogger();
int partitionId = getPartitionId(); InternalPartitionService partitionService = nodeEngine.getPartitionService(); ILogger logger = getLogger();