"Trying to queue work for " + ts + " at non-local partition " + fragment.getPartitionId();
if (hstore_conf.site.specexec_enable && ts instanceof RemoteTransaction && fragment.hasFutureStatements()) {
QueryEstimate query_estimate = fragment.getFutureStatements();
RemoteTransaction remote_ts = (RemoteTransaction)ts;
RemoteEstimatorState t_state = (RemoteEstimatorState)remote_ts.getEstimatorState();
if (t_state == null) {
t_state = this.remoteTxnEstimator.startTransaction(ts.getTransactionId(),
ts.getBasePartition(),
ts.getProcedure(),
null);
remote_ts.setEstimatorState(t_state);
}
if (debug.val)
LOG.debug(String.format("%s - Updating %s with %d future statement hints for partition %d",
ts, t_state.getClass().getSimpleName(),
fragment.getFutureStatements().getStmtIdsCount(),
fragment.getPartitionId()));
this.remoteTxnEstimator.processQueryEstimate(t_state, query_estimate, fragment.getPartitionId());
}