* @param task
* @param status The final status of the transaction
*/
public void queueFinish(AbstractTransaction ts, Status status) {
assert(ts.isInitialized()) : "Unexpected uninitialized transaction: " + ts;
FinishTxnMessage work = ts.getFinishTxnMessage(status);
boolean success = this.work_queue.offer(work); // , true);
assert(success) :
String.format("Failed to queue %s at partition %d for %s",
work, this.partitionId, ts);
if (debug.val)
LOG.debug(String.format("%s - Added %s to partition %d " +
"work queue [size=%d]",
ts, work.getClass().getSimpleName(), this.partitionId,
this.work_queue.size()));
// if (success) this.specExecScheduler.haltSearch();
}