@Override public void run(Operation op) { executedOperationsCounter.inc(); boolean publishCurrentTask = publishCurrentTask(); if (publishCurrentTask) { currentTask = op; } try { checkNodeState(op); if (timeout(op)) { return; } ensureNoPartitionProblems(op); ensureQuorumPresent(op); op.beforeRun(); call(op); } catch (Throwable e) { handleOperationError(op, e); } finally { if (publishCurrentTask) { currentTask = null; } } }
@Override public void run(Operation op) { executedOperationsCounter.inc(); boolean publishCurrentTask = publishCurrentTask(); if (publishCurrentTask) { currentTask = op; } try { checkNodeState(op); if (timeout(op)) { return; } ensureNoPartitionProblems(op); ensureQuorumPresent(op); op.beforeRun(); call(op); } catch (Throwable e) { handleOperationError(op, e); } finally { if (publishCurrentTask) { currentTask = null; } } }