LOG.warn(String.format("%s - Not queuing txn at partition %d because current mode is %s",
ts, this.partitionId, this.currentExecMode));
return (false);
}
StartTxnMessage work = ts.getStartTxnMessage();
if (debug.val)
LOG.debug(String.format("Queuing %s for '%s' request on partition %d " +
"[currentDtxn=%s, queueSize=%d, mode=%s]",
work.getClass().getSimpleName(), ts.getProcedure().getName(), this.partitionId,
this.currentDtxn, this.work_queue.size(), this.currentExecMode));
boolean success = this.work_queue.offer(work); // , force);
if (debug.val && force && success == false) {
String msg = String.format("Failed to add %s even though force flag was true!", ts);
throw new ServerFaultException(msg, ts.getTransactionId());