// we know for sure this transaction is 2PC and was received via state transfer but the preceding PrepareCommand
// was not received by local node because it was executed on the previous key owners. We need to re-prepare
// the transaction on local node to ensure its locks are acquired and lookedUpEntries is properly populated.
RemoteTransaction remoteTx = (RemoteTransaction) ctx.getCacheTransaction();
if (trace) {
log.tracef("Remote tx topology id %d and command topology is %d", remoteTx.lookedUpEntriesTopology(),
command.getTopologyId());
}
if (remoteTx.lookedUpEntriesTopology() < command.getTopologyId()) {
ctx.skipTransactionCompleteCheck(true);
remoteTx.setLookedUpEntriesTopology(command.getTopologyId());