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%2FAbstractTransactionContextFactory.java;h=6941d1904c665827938d54f68defc423a70eb9e3;hb=7ce039b3e55d153fc75bc88198c49536ab83befc;hp=29b52f75579b57e2fbad4563585de9b10828d154;hpb=82be660900ab9bdd84941a0c3498c1ae36982aba;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/AbstractTransactionContextFactory.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/AbstractTransactionContextFactory.java index 29b52f7557..6941d1904c 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/AbstractTransactionContextFactory.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/AbstractTransactionContextFactory.java @@ -41,8 +41,8 @@ abstract class AbstractTransactionContextFactory knownLocal = new ConcurrentHashMap<>(); - private final LocalHistoryIdentifier historyId; - private final ActorUtils actorUtils; + private final @NonNull LocalHistoryIdentifier historyId; + private final @NonNull ActorUtils actorUtils; // Used via TX_COUNTER_UPDATER @SuppressWarnings("unused") @@ -94,14 +94,14 @@ abstract class AbstractTransactionContextFactory maybe = findPrimaryFuture.value().get(); if (maybe.isSuccess()) { - return maybeCreateDirectTransactionContextWrapper(maybe.get(), parent, shardName, - contextWrapper); - } else { - onFindPrimaryShardFailure(maybe.failed().get(), parent, shardName, - contextWrapper); + return maybeCreateDirectTransactionContextWrapper(maybe.get(), parent, shardName, contextWrapper); } + + onFindPrimaryShardFailure(maybe.failed().get(), parent, shardName, contextWrapper); } else { findPrimaryFuture.onComplete(result -> { if (result.isSuccess()) {