From 34e38a415bc299403657315a5b61afd432dcbbee Mon Sep 17 00:00:00 2001 From: Moiz Raja Date: Thu, 21 May 2015 11:20:55 -0700 Subject: [PATCH] Use TransactionCommitOperationTimeout when commiting a Local transaction 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 (cherry picked from commit 3ca4e8353a32a68ebf71e98fed1954af5c419ca3) --- .../cluster/datastore/LocalThreePhaseCommitCohort.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LocalThreePhaseCommitCohort.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LocalThreePhaseCommitCohort.java index 0ea1029a9d..267513fc2f 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LocalThreePhaseCommitCohort.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LocalThreePhaseCommitCohort.java @@ -48,7 +48,7 @@ abstract class LocalThreePhaseCommitCohort implements DOMStoreThreePhaseCommitCo private Future 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 initiateCoordinatedCommit() { -- 2.36.6