X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FLocalThreePhaseCommitCohort.java;h=db879c07730e99ddfb78aaca3af96790f6077c61;hb=e6e14f87df36c0c704ec012d07bfd0ac5b9f1848;hp=1f8800f5d34fea884d483ff9a1d39bf082799b06;hpb=12fcdfe39aa26dcba7fd3bb4d4c68e3d02e65c51;p=controller.git 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 1f8800f5d3..db879c0773 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 @@ -72,7 +72,7 @@ class LocalThreePhaseCommitCohort implements DOMStoreThreePhaseCommitCohort { return actorContext.executeOperationAsync(leader, message, actorContext.getTransactionCommitOperationTimeout()); } - Future initiateCoordinatedCommit(Optional> participatingShardNames) { + Future initiateCoordinatedCommit(final Optional> participatingShardNames) { final Future messageFuture = initiateCommit(false, participatingShardNames); final Future ret = TransactionReadyReplyMapper.transform(messageFuture, actorContext, transaction.getIdentifier()); @@ -80,7 +80,7 @@ class LocalThreePhaseCommitCohort implements DOMStoreThreePhaseCommitCohort { @Override public void onComplete(final Throwable failure, final ActorSelection success) { if (failure != null) { - LOG.info("Failed to prepare transaction {} on backend", transaction.getIdentifier(), failure); + LOG.warn("Failed to prepare transaction {} on backend", transaction.getIdentifier(), failure); transactionAborted(transaction); return; } @@ -98,13 +98,14 @@ class LocalThreePhaseCommitCohort implements DOMStoreThreePhaseCommitCohort { @Override public void onComplete(final Throwable failure, final Object message) { if (failure != null) { - LOG.error("Failed to prepare transaction {} on backend", transaction.getIdentifier(), failure); + LOG.warn("Failed to prepare transaction {} on backend", transaction.getIdentifier(), failure); transactionAborted(transaction); } else if (CommitTransactionReply.isSerializedType(message)) { LOG.debug("Transaction {} committed successfully", transaction.getIdentifier()); transactionCommitted(transaction); } else { - LOG.error("Transaction {} resulted in unhandled message type {}, aborting", message.getClass()); + LOG.error("Transaction {} resulted in unhandled message type {}, aborting", + transaction.getIdentifier(), message.getClass()); transactionAborted(transaction); } } @@ -137,9 +138,9 @@ class LocalThreePhaseCommitCohort implements DOMStoreThreePhaseCommitCohort { throw new UnsupportedOperationException(); } - protected void transactionAborted(SnapshotBackedWriteTransaction aborted) { + protected void transactionAborted(final SnapshotBackedWriteTransaction aborted) { } - protected void transactionCommitted(SnapshotBackedWriteTransaction comitted) { + protected void transactionCommitted(final SnapshotBackedWriteTransaction comitted) { } }