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%2FDistributedDataStore.java;h=d31217042aa7f65e801b6a1d7dbc82d89e47ccbc;hb=40460ae356add6bd8d28a25cf8b287c9bfa38b38;hp=5e8b1913c4cf8550a161a9dd6afd079d5c905e56;hpb=72a72ae745544e41603f851bf4f47087cfe521ba;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java index 5e8b1913c4..d31217042a 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java @@ -185,7 +185,7 @@ public class DistributedDataStore implements DOMStore, SchemaContextListener, @Override public void onDatastoreContextUpdated(DatastoreContextFactory contextFactory) { - LOG.info("DatastoreContext updated for data store {}", actorContext.getDataStoreType()); + LOG.info("DatastoreContext updated for data store {}", actorContext.getDataStoreName()); actorContext.setDatastoreContext(contextFactory); datastoreConfigMXBean.setContext(contextFactory.getBaseDatastoreContext()); @@ -232,14 +232,14 @@ public class DistributedDataStore implements DOMStore, SchemaContextListener, } } - private ActorRef createShardManager(ActorSystem actorSystem, ShardManager.Builder builder, String shardDispatcher, - String shardManagerId){ + private static ActorRef createShardManager(ActorSystem actorSystem, ShardManager.Builder builder, + String shardDispatcher, String shardManagerId) { Exception lastException = null; for(int i=0;i<100;i++) { try { return actorSystem.actorOf(builder.props().withDispatcher(shardDispatcher).withMailbox( - ActorContext.MAILBOX), shardManagerId); + ActorContext.BOUNDED_MAILBOX), shardManagerId); } catch (Exception e){ lastException = e; Uninterruptibles.sleepUninterruptibly(100, TimeUnit.MILLISECONDS);