This is to make this similar to how we do a remote transaction. The transaction
commit timeout is much larger than the operation timeout and is more appropriate
for committing because the latencies involved in committing are much larger as
committing involves replication which could sometimes be pretty slow.
Change-Id: Ie76e05bf875b4ea5eee9618519d7167f50671c8f
Signed-off-by: Moiz Raja <moraja@cisco.com>
private Future<Object> initiateCommit(final boolean immediate) {
final ReadyLocalTransaction message = new ReadyLocalTransaction(transaction.getIdentifier().toString(),
modification, immediate);
- return actorContext.executeOperationAsync(leader, message);
+ return actorContext.executeOperationAsync(leader, message, actorContext.getTransactionCommitOperationTimeout());
}
Future<ActorSelection> initiateCoordinatedCommit() {