<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:56:06 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[CONTROLLER-1653] C: UnknownHistoryException: Last known history is null;  for prefix based shard</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1653</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;my job: (1 #592)&lt;br/&gt;
used odl: &lt;a href=&quot;https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/distribution-karaf/0.6.0-SNAPSHOT/distribution-karaf-0.6.0-20170503.152424-68.zip&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/distribution-karaf/0.6.0-SNAPSHOT/distribution-karaf-0.6.0-20170503.152424-68.zip&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;is built from controller=33/56433/5&lt;br/&gt;
&lt;a href=&quot;https://jenkins.opendaylight.org/releng/view/integration/job/integration-multipatch-test-carbon/11/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/releng/view/integration/job/integration-multipatch-test-carbon/11/&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;after prefix based shard is created, procude-transactions rpc is triggered on every node. One of the response contained&lt;/p&gt;

&lt;p&gt;cause=org.opendaylight.controller.cluster.access.commands.UnknownHistoryException: Last known history is null]]}&lt;br/&gt;
	at org.opendaylight.mdsal.dom.broker.TransactionCommitFailedExceptionMapper.newWithCause(TransactionCommitFailedExceptionMapper.java:37)&lt;br/&gt;
	at org.opendaylight.mdsal.dom.broker.TransactionCommitFailedExceptionMapper.newWithCause(TransactionCommitFailedExceptionMapper.java:18)&lt;br/&gt;
	at org.opendaylight.yangtools.util.concurrent.ExceptionMapper.apply(ExceptionMapper.java:87)&lt;br/&gt;
	at org.opendaylight.yangtools.util.concurrent.ExceptionMapper.apply(ExceptionMapper.java:37)&lt;br/&gt;
	at com.google.common.util.concurrent.Futures$MappingCheckedFuture.mapException(Futures.java:1809)&lt;br/&gt;
	at com.google.common.util.concurrent.AbstractCheckedFuture.checkedGet(AbstractCheckedFuture.java:85)&lt;br/&gt;
	at org.opendaylight.controller.clustering.it.provider.impl.ProduceTransactionsHandler.fillInitialList(ProduceTransactionsHandler.java:149)&lt;br/&gt;
	at org.opendaylight.controller.clustering.it.provider.impl.ProduceTransactionsHandler.start(ProduceTransactionsHandler.java:118)&lt;br/&gt;
	at org.opendaylight.controller.clustering.it.provider.MdsalLowLevelTestProvider.produceTransactions(MdsalLowLevelTestProvider.java:540)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.binding.util.RpcMethodInvokerWithInput.invokeOn(RpcMethodInvokerWithInput.java:31)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.binding.util.AbstractMappedRpcInvoker.invokeRpc(AbstractMappedRpcInvoker.java:52)&lt;br/&gt;
	at org.opendaylight.controller.md.sal.binding.impl.BindingDOMRpcImplementationAdapter.invoke(BindingDOMRpcImplementationAdapter.java:83)&lt;br/&gt;
	at org.opendaylight.controller.md.sal.binding.impl.BindingDOMRpcImplementationAdapter.invokeRpc(BindingDOMRpcImplementationAdapter.java:70)&lt;br/&gt;
	at org.opendaylight.controller.md.sal.dom.broker.impl.GlobalDOMRpcRoutingTableEntry.invokeRpc(GlobalDOMRpcRoutingTableEntry.java:39)&lt;br/&gt;
	at org.opendaylight.controller.md.sal.dom.broker.impl.DOMRpcRoutingTable.invokeRpc(DOMRpcRoutingTable.java:177)&lt;br/&gt;
	at org.opendaylight.controller.md.sal.dom.broker.impl.DOMRpcRouter.invokeRpc(DOMRpcRouter.java:102)&lt;br/&gt;
	at Proxy24478179_b535_4a0a_8f9f_b8d4fc200323.invokeRpc(Unknown Source)&lt;br/&gt;
	at org.opendaylight.netconf.sal.restconf.impl.BrokerFacade.invokeRpc(BrokerFacade.java:508)&lt;br/&gt;
	at org.opendaylight.netconf.sal.restconf.impl.RestconfImpl.invokeRpc(RestconfImpl.java:467)&lt;br/&gt;
	at org.opendaylight.netconf.sal.restconf.impl.StatisticsRestconfServiceWrapper.invokeRpc(StatisticsRestconfServiceWrapper.java:83)&lt;br/&gt;
	at org.opendaylight.netconf.sal.rest.impl.RestconfCompositeWrapper.invokeRpc(RestconfCompositeWrapper.java:64)&lt;br/&gt;
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br/&gt;
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;br/&gt;
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br/&gt;
	at java.lang.reflect.Method.invoke(Method.java:498)&lt;br/&gt;
	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)&lt;br/&gt;
	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)&lt;br/&gt;
	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)&lt;br/&gt;
	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)&lt;br/&gt;
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)&lt;br/&gt;
	at com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100)&lt;br/&gt;
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)&lt;br/&gt;
	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)&lt;br/&gt;
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)&lt;br/&gt;
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)&lt;br/&gt;
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)&lt;br/&gt;
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)&lt;br/&gt;
	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)&lt;br/&gt;
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)&lt;br/&gt;
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)&lt;br/&gt;
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)&lt;br/&gt;
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)&lt;br/&gt;
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1507)&lt;br/&gt;
	at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:247)&lt;br/&gt;
	at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:210)&lt;br/&gt;
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1478)&lt;br/&gt;
	at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)&lt;br/&gt;
	at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:256)&lt;br/&gt;
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1478)&lt;br/&gt;
	at org.opendaylight.aaa.filterchain.filters.CustomFilterAdapter.doFilter(CustomFilterAdapter.java:83)&lt;br/&gt;
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1478)&lt;br/&gt;
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)&lt;br/&gt;
	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)&lt;br/&gt;
	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)&lt;br/&gt;
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)&lt;br/&gt;
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)&lt;br/&gt;
	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)&lt;br/&gt;
	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)&lt;br/&gt;
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)&lt;br/&gt;
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)&lt;br/&gt;
	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)&lt;br/&gt;
	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)&lt;br/&gt;
	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)&lt;br/&gt;
	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)&lt;br/&gt;
	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)&lt;br/&gt;
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)&lt;br/&gt;
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)&lt;br/&gt;
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1478)&lt;br/&gt;
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)&lt;br/&gt;
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)&lt;br/&gt;
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)&lt;br/&gt;
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)&lt;br/&gt;
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)&lt;br/&gt;
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)&lt;br/&gt;
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)&lt;br/&gt;
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:427)&lt;br/&gt;
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)&lt;br/&gt;
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)&lt;br/&gt;
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)&lt;br/&gt;
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)&lt;br/&gt;
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)&lt;br/&gt;
	at org.eclipse.jetty.server.Server.handle(Server.java:370)&lt;br/&gt;
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)&lt;br/&gt;
	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:984)&lt;br/&gt;
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1045)&lt;br/&gt;
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)&lt;br/&gt;
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:236)&lt;br/&gt;
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)&lt;br/&gt;
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)&lt;br/&gt;
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)&lt;br/&gt;
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)&lt;br/&gt;
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)&lt;br/&gt;
	at java.lang.Thread.run(Thread.java:745)&lt;br/&gt;
Caused by: org.opendaylight.controller.cluster.access.commands.UnknownHistoryException: Last known history is null&lt;br/&gt;
	at org.opendaylight.controller.cluster.datastore.LeaderFrontendState.handleTransactionRequest(LeaderFrontendState.java:192)&lt;br/&gt;
	at org.opendaylight.controller.cluster.datastore.Shard.handleRequest(Shard.java:450)&lt;br/&gt;
	at org.opendaylight.controller.cluster.datastore.Shard.handleNonRaftCommand(Shard.java:283)&lt;br/&gt;
	at org.opendaylight.controller.cluster.raft.RaftActor.handleCommand(RaftActor.java:270)&lt;br/&gt;
	at org.opendaylight.controller.cluster.common.actor.AbstractUntypedPersistentActor.onReceiveCommand(AbstractUntypedPersistentActor.java:31)&lt;br/&gt;
	at akka.persistence.UntypedPersistentActor.onReceive(PersistentActor.scala:170)&lt;br/&gt;
	at org.opendaylight.controller.cluster.common.actor.MeteringBehavior.apply(MeteringBehavior.java:104)&lt;br/&gt;
	at akka.actor.ActorCell$$anonfun$become$1.applyOrElse(ActorCell.scala:544)&lt;br/&gt;
	at akka.actor.Actor$class.aroundReceive(Actor.scala:497)&lt;br/&gt;
	at akka.persistence.UntypedPersistentActor.akka$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:168)&lt;br/&gt;
	at akka.persistence.Eventsourced$$anon$1.stateReceive(Eventsourced.scala:664)&lt;br/&gt;
	at akka.persistence.Eventsourced$class.aroundReceive(Eventsourced.scala:183)&lt;br/&gt;
	at akka.persistence.UntypedPersistentActor.aroundReceive(PersistentActor.scala:168)&lt;br/&gt;
	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)&lt;br/&gt;
	at akka.actor.ActorCell.invoke(ActorCell.scala:495)&lt;br/&gt;
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)&lt;br/&gt;
	at akka.dispatch.Mailbox.run(Mailbox.scala:224)&lt;br/&gt;
	at akka.dispatch.Mailbox.exec(Mailbox.scala:234)&lt;br/&gt;
	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)&lt;br/&gt;
	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)&lt;br/&gt;
	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)&lt;br/&gt;
	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)&lt;/p&gt;


&lt;p&gt;Logs areover 1G for each node, debug was on.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26207">CONTROLLER-1653</key>
            <summary>C: UnknownHistoryException: Last known history is null;  for prefix based shard</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10003">Cannot Reproduce</resolution>
                                        <assignee username="rovarga">Robert Varga</assignee>
                                    <reporter username="pgubka@cisco.com">Peter Gubka</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 May 2017 11:23:44 +0000</created>
                <updated>Tue, 25 Jul 2023 08:24:33 +0000</updated>
                            <resolved>Wed, 21 Jun 2017 09:07:46 +0000</resolved>
                                                                    <component>clustering</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="52086" author="pgubka@cisco.com" created="Thu, 4 May 2017 11:23:44 +0000"  >&lt;p&gt;Attachment log.html has been added with description: robot log&lt;/p&gt;</comment>
                            <comment id="52065" author="vzelcamo@cisco.com" created="Tue, 9 May 2017 11:53:22 +0000"  >&lt;p&gt;might be fixed, keep track just if appears again, lower priority&lt;/p&gt;</comment>
                            <comment id="52066" author="rovarga" created="Tue, 16 May 2017 17:17:02 +0000"  >&lt;p&gt;Needs to be tested with 8402 and 8159 patches in place.&lt;/p&gt;</comment>
                            <comment id="52067" author="pgubka@cisco.com" created="Thu, 18 May 2017 12:04:04 +0000"  >&lt;p&gt;fixed as a side effect&lt;/p&gt;</comment>
                            <comment id="52068" author="vrpolak" created="Thu, 18 May 2017 15:41:55 +0000"  >&lt;p&gt;The subject exception appeared again &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;, albeit in a scenario (brief isolation of prefix-based shard leader) where other producers &lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt; failed with &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1674&quot; title=&quot;Timeout waiting for task in producer when moving shard leader&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1674&quot;&gt;&lt;del&gt;CONTROLLER-1674&lt;/del&gt;&lt;/a&gt; symptom &quot;Timeout waiting for task&quot;.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; &lt;a href=&quot;https://logs.opendaylight.org/releng/jenkins092/controller-csit-3node-clustering-only-carbon/694/archives/log.html.gz#s1-s30-t1-k2-k25-k1-k2-k1-k1-k1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://logs.opendaylight.org/releng/jenkins092/controller-csit-3node-clustering-only-carbon/694/archives/log.html.gz#s1-s30-t1-k2-k25-k1-k2-k1-k1-k1&lt;/a&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt; &lt;a href=&quot;https://logs.opendaylight.org/releng/jenkins092/controller-csit-3node-clustering-only-carbon/694/archives/log.html.gz#s1-s30-t1-k2-k25-k1-k1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://logs.opendaylight.org/releng/jenkins092/controller-csit-3node-clustering-only-carbon/694/archives/log.html.gz#s1-s30-t1-k2-k25-k1-k1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="52069" author="pgubka@cisco.com" created="Fri, 19 May 2017 09:07:16 +0000"  >&lt;p&gt;The exception appeared also here: &lt;a href=&quot;https://logs.opendaylight.org/releng/jenkins092/controller-csit-3node-clustering-only-carbon/697/archives/log.html.gz#s1-s30-t1-k2-k26-k1-k1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://logs.opendaylight.org/releng/jenkins092/controller-csit-3node-clustering-only-carbon/697/archives/log.html.gz#s1-s30-t1-k2-k26-k1-k1&lt;/a&gt;&lt;br/&gt;
It is the Leader isolation within transaction timeout scenario (for prefix shards).&lt;/p&gt;</comment>
                            <comment id="52070" author="vrpolak" created="Mon, 22 May 2017 07:40:25 +0000"  >&lt;p&gt;&amp;gt; brief isolation of prefix-based shard leader&lt;br/&gt;
&amp;gt; where other producers &lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt; failed with &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1674&quot; title=&quot;Timeout waiting for task in producer when moving shard leader&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1674&quot;&gt;&lt;del&gt;CONTROLLER-1674&lt;/del&gt;&lt;/a&gt; symptom&lt;/p&gt;

&lt;p&gt;This time &lt;span class=&quot;error&quot;&gt;&amp;#91;5&amp;#93;&lt;/span&gt; the other producers also report &quot;Last known history is null&quot;.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;5&amp;#93;&lt;/span&gt; &lt;a href=&quot;https://logs.opendaylight.org/releng/jenkins092/controller-csit-3node-clustering-only-carbon/715/archives/log.html.gz#s1-s30-t1-k2-k26-k1-k1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://logs.opendaylight.org/releng/jenkins092/controller-csit-3node-clustering-only-carbon/715/archives/log.html.gz#s1-s30-t1-k2-k26-k1-k1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="52071" author="pgubka@cisco.com" created="Tue, 23 May 2017 17:18:24 +0000"  >&lt;p&gt;New debug logs in&lt;br/&gt;
&lt;a href=&quot;https://jenkins.opendaylight.org/sandbox/job/controller-csit-3node-clustering-only-carbon-3rd/5/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/sandbox/job/controller-csit-3node-clustering-only-carbon-3rd/5/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Exceptions itself &lt;a href=&quot;https://logs.opendaylight.org/sandbox/jenkins091/controller-csit-3node-clustering-only-carbon-3rd/5/archives/log.html.gz#s1-s2-t1-k2-k27-k1-k2-k1-k1-k1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://logs.opendaylight.org/sandbox/jenkins091/controller-csit-3node-clustering-only-carbon-3rd/5/archives/log.html.gz#s1-s2-t1-k2-k27-k1-k2-k1-k1-k1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The odl zip was built &lt;a href=&quot;https://jenkins.opendaylight.org/releng/view/integration/job/integration-multipatch-test-carbon/37/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/releng/view/integration/job/integration-multipatch-test-carbon/37/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="52072" author="rovarga" created="Tue, 23 May 2017 18:08:01 +0000"  >&lt;p&gt;New set of logs seem to indicate that this is happening after a follower-&amp;gt;leader transition:&lt;/p&gt;

&lt;p&gt;2017-05-23 13:05:44,012 | INFO  | lt-dispatcher-23 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.0.SNAPSHOT | member-1-shard-id-ints!-config (Candidate): Starting new election term 3&lt;br/&gt;
2017-05-23 13:05:44,015 | INFO  | ult-dispatcher-5 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.0.SNAPSHOT | member-1-shard-id-ints!-config (Candidate): LastApplied index 2 is behind last index 4 - switching to PreLeader&lt;br/&gt;
2017-05-23 13:05:44,018 | INFO  | ult-dispatcher-5 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.0.SNAPSHOT | member-1-shard-id-ints!&lt;del&gt;config (Candidate) :&lt;/del&gt; Switching from behavior Candidate to PreLeader, election term: 3&lt;br/&gt;
2017-05-23 13:05:44,019 | INFO  | ult-dispatcher-4 | ShardManager                     | 199 - org.opendaylight.controller.sal-distributed-datastore - 1.5.0.SNAPSHOT | shard-manager-config: Received LeaderStateChanged message: LeaderStateChanged [memberId=member-1-shard-id-ints!-config, leaderId=member-1-shard-id-int&lt;br/&gt;
s!-config, leaderPayloadVersion=5]&lt;br/&gt;
2017-05-23 13:05:44,019 | INFO  | ult-dispatcher-5 | RoleChangeNotifier               | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.0.SNAPSHOT | RoleChangeNotifier for member-1-shard-id-ints!-config , received role change from Candidate to PreLeader&lt;br/&gt;
2017-05-23 13:05:44,019 | INFO  | ult-dispatcher-5 | ShardManager                     | 199 - org.opendaylight.controller.sal-distributed-datastore - 1.5.0.SNAPSHOT | shard-manager-config: Received role changed for member-1-shard-id-ints!-config from Candidate to PreLeader&lt;br/&gt;
2017-05-23 13:05:44,024 | INFO  | ult-dispatcher-4 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.0.SNAPSHOT | member-1-shard-id-ints!&lt;del&gt;config (PreLeader) :&lt;/del&gt; Switching from behavior PreLeader to Leader, election term: 3&lt;br/&gt;
2017-05-23 13:05:44,024 | INFO  | ult-dispatcher-4 | RoleChangeNotifier               | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.0.SNAPSHOT | RoleChangeNotifier for member-1-shard-id-ints!-config , received role change from PreLeader to Leader&lt;br/&gt;
2017-05-23 13:05:44,024 | INFO  | lt-dispatcher-31 | ShardManager                     | 199 - org.opendaylight.controller.sal-distributed-datastore - 1.5.0.SNAPSHOT | shard-manager-config: Received role changed for member-1-shard-id-ints!-config from PreLeader to Leader&lt;/p&gt;


&lt;p&gt;the previous leader was:&lt;/p&gt;


&lt;p&gt;2017-05-23 13:05:45,525 | INFO  | lt-dispatcher-22 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.0.SNAPSHOT | member-3-shard-id-ints!&lt;del&gt;config (Leader) :&lt;/del&gt; Switching from behavior Leader to Follower, election term: 2&lt;/p&gt;


&lt;p&gt;and we have moved back its journal:&lt;/p&gt;


&lt;p&gt;2017-05-23 13:05:50,830 | INFO  | ult-dispatcher-4 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.0.SNAPSHOT | member-1-shard-id-ints!-config (Leader): handleAppendEntriesReply: follower member-3-shard-id-ints!-config lastIndex 8 is ahead of our lastIndex 5 (snapshotIndex 1) - forcing install snaphot&lt;/p&gt;


&lt;p&gt;2017-05-23 13:05:50,833 | INFO  | ult-dispatcher-4 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.0.SNAPSHOT | member-1-shard-id-ints!-config: Initiating snapshot capture CaptureSnapshot &lt;span class=&quot;error&quot;&gt;&amp;#91;lastAppliedIndex=5, lastAppliedTerm=3, lastIndex=5, lastTerm=3, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0&amp;#93;&lt;/span&gt; to install on member-3-shard-id-ints!-config&lt;br/&gt;
2017-05-23 13:05:50,844 | INFO  | lt-dispatcher-24 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.0.SNAPSHOT | member-1-shard-id-ints!-config: Persisting of snapshot done: Snapshot &lt;span class=&quot;error&quot;&gt;&amp;#91;lastIndex=5, lastTerm=3, lastAppliedIndex=5, lastAppliedTerm=3, unAppliedEntries size=0, state=org.opendaylight.controller.cluster.datastore.persisted.ShardSnapshotState@6e5621d1, electionTerm=3, electionVotedFor=member-1-shard-id-ints!-config, ServerConfigPayload=null&amp;#93;&lt;/span&gt;&lt;br/&gt;
2017-05-23 13:05:50,844 | INFO  | lt-dispatcher-24 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.0.SNAPSHOT | member-1-shard-id-ints!-config: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1&lt;br/&gt;
2017-05-23 13:05:50,848 | INFO  | lt-dispatcher-24 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.0.SNAPSHOT | member-1-shard-id-ints!-config: SaveSnapshotSuccess received for snapshot, sequenceNr: 13&lt;/p&gt;

&lt;p&gt;and then we have rejected a request from that node:&lt;/p&gt;

&lt;p&gt;2017-05-23 13:05:59,683 | WARN  | ult-dispatcher-4 | LeaderFrontendState              | 199 - org.opendaylight.controller.sal-distributed-datastore - 1.5.0.SNAPSHOT | member-1-shard-id-ints!-config: rejecting unknown history request ModifyTransactionRequest{target=member-3-datastore-Shard-id-ints!-fe-0-chn-5-txn-0-0, sequence=0, replyTo=Actor&lt;span class=&quot;error&quot;&gt;&amp;#91;akka.tcp://opendaylight-cluster-data@10.29.13.208:2550/user/$m#-1415893195&amp;#93;&lt;/span&gt;, operations=[TransactionWrite{path=/(tag:opendaylight.org,2017:controller:yang:lowlevel:target?revision=2017-02-15)id-int/id-int[&lt;/p&gt;
{(tag:opendaylight.org,2017:controller:yang:lowlevel:target?revision=2017-02-15)id=prefix-3}
&lt;p&gt;]/item}], protocol=SIMPLE}&lt;/p&gt;

&lt;p&gt;So this looks like we&apos;ve lost the history ID during transition and it was not replayed for some reason. Part of it may be locality of the client/frontend, I will dig into the member-3 frontend logs to see what went down.&lt;/p&gt;</comment>
                            <comment id="52073" author="rovarga" created="Tue, 23 May 2017 18:33:33 +0000"  >&lt;p&gt;So it seems that there is no actual attempt to re-create the history in replay, which explains the failure.&lt;/p&gt;

&lt;p&gt;As it turns out, we only ever send the create request on initial enqueue and once it succeeds we do not ever replay it once it succeeds. This points towards a problem on the backend, as it should not respond before the appropriate payload has been replicated (and then the history would be known to the follower).&lt;/p&gt;

&lt;p&gt;Examining the code, ShardDataTree really calls replicatePayload() without a callback. Given that we want to allocate state properly, this needs some more thought.&lt;/p&gt;</comment>
                            <comment id="52074" author="rovarga" created="Tue, 23 May 2017 18:34:13 +0000"  >&lt;p&gt;Incorrect state-keeping on the backend: raising to critical.&lt;/p&gt;</comment>
                            <comment id="52075" author="rovarga" created="Wed, 24 May 2017 09:40:33 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/57751&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/57751&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="52076" author="pgubka@cisco.com" created="Thu, 25 May 2017 08:50:09 +0000"  >&lt;p&gt;Debug logs (including akka)&lt;br/&gt;
&lt;a href=&quot;https://jenkins.opendaylight.org/sandbox/job/controller-csit-3node-clustering-only-carbon-3rd/10/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/sandbox/job/controller-csit-3node-clustering-only-carbon-3rd/10/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Odl was built from controller=63/57763/2:99/57699/3&lt;br/&gt;
&lt;a href=&quot;https://jenkins.opendaylight.org/releng/view/integration/job/integration-multipatch-test-carbon/43&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/releng/view/integration/job/integration-multipatch-test-carbon/43&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The bug is still present&lt;br/&gt;
&lt;a href=&quot;https://logs.opendaylight.org/sandbox/jenkins091/controller-csit-3node-clustering-only-carbon-3rd/10/archives/log.html.gz#s1-s2-t1-k2-k27-k1-k2-k1-k1-k1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://logs.opendaylight.org/sandbox/jenkins091/controller-csit-3node-clustering-only-carbon-3rd/10/archives/log.html.gz#s1-s2-t1-k2-k27-k1-k2-k1-k1-k1&lt;/a&gt;&lt;br/&gt;
but the new debug run is in the queue.&lt;/p&gt;</comment>
                            <comment id="52077" author="pgubka@cisco.com" created="Thu, 25 May 2017 10:48:33 +0000"  >&lt;p&gt;Debug logs (including akka)&lt;br/&gt;
&lt;a href=&quot;https://jenkins.opendaylight.org/sandbox/job/controller-csit-3node-clustering-only-carbon-3rd/13/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/sandbox/job/controller-csit-3node-clustering-only-carbon-3rd/13/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Odl built from controller=70/57770/4:99/57699/3 at&lt;br/&gt;
&lt;a href=&quot;https://jenkins.opendaylight.org/releng/view/integration/job/integration-multipatch-test-carbon/45/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/releng/view/integration/job/integration-multipatch-test-carbon/45/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Exception present here:&lt;br/&gt;
&lt;a href=&quot;https://logs.opendaylight.org/sandbox/jenkins091/controller-csit-3node-clustering-only-carbon-3rd/13/archives/log.html.gz#s1-s2-t1-k2-k27-k1-k2-k1-k1-k1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://logs.opendaylight.org/sandbox/jenkins091/controller-csit-3node-clustering-only-carbon-3rd/13/archives/log.html.gz#s1-s2-t1-k2-k27-k1-k2-k1-k1-k1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="52078" author="pgubka@cisco.com" created="Fri, 26 May 2017 09:59:58 +0000"  >&lt;p&gt;Testing without akka logs:&lt;/p&gt;


&lt;p&gt;Odl built from: Odl built from:&lt;br/&gt;
&lt;a href=&quot;https://jenkins.opendaylight.org/releng/view/integration/job/integration-multipatch-test-carbon/49/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/releng/view/integration/job/integration-multipatch-test-carbon/49/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Testing job: &lt;a href=&quot;https://jenkins.opendaylight.org/sandbox/job/controller-csit-3node-clustering-only-carbon-3rd/17/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/sandbox/job/controller-csit-3node-clustering-only-carbon-3rd/17/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Link to exception:&lt;br/&gt;
&lt;a href=&quot;https://logs.opendaylight.org/sandbox/jenkins091/controller-csit-3node-clustering-only-carbon-3rd/17/archives/log.html.gz#s1-s2-t1-k2-k27-k1-k2-k1-k1-k1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://logs.opendaylight.org/sandbox/jenkins091/controller-csit-3node-clustering-only-carbon-3rd/17/archives/log.html.gz#s1-s2-t1-k2-k27-k1-k2-k1-k1-k1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="52079" author="rovarga" created="Mon, 29 May 2017 14:22:39 +0000"  >&lt;p&gt;Latest logs look as though the same problem as the patch was designed to address. What I can see is that the leader was local and it was supposed to respond only after replication has completed (hence the history should have been known in the logs). Yet what I am seeing is:&lt;/p&gt;

&lt;p&gt;2017-05-29 09:57:05,587 | DEBUG | qtp1225240590-76 | TransmitQueue                    | 197 - org.opendaylight.controller.cds-access-client - 1.1.1.SNAPSHOT | Queue ConnectionEntry{request=CommitLocalTransactionRequest&lt;/p&gt;
{target=member-3-datastore-Shard-id-ints!-fe-0-chn-7-txn-0-0, sequence=0, replyTo=Actor[akka://open
daylight-cluster-data/user/$m#-908684957], coordinated=false}
&lt;p&gt;, enqueuedTicks=489198929633} transmitting entry {}&lt;br/&gt;
2017-05-29 09:57:08,270 | INFO  | h for user karaf | command                          | 265 - org.apache.karaf.log.command - 3.0.8 | ROBOT MESSAGE: Isolating node 3&lt;br/&gt;
2017-05-29 09:57:17,527 | WARN  | ult-dispatcher-4 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.1.SNAPSHOT | member-3-shard-id-ints!-config (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=1, succ&lt;br/&gt;
ess=true, followerId=member-2-shard-id-ints!-config, logLastIndex=5, logLastTerm=1, forceInstallSnapshot=false, payloadVersion=5, raftVersion=3], timeSinceLastActivity : 12552, lastApplied : 2, commitIndex : 2&lt;br/&gt;
2017-05-29 09:57:17,528 | DEBUG | ult-dispatcher-4 | TransmitQueue                    | 197 - org.opendaylight.controller.cds-access-client - 1.1.1.SNAPSHOT | Completing request CreateLocalHistoryRequest{target=LocalHistoryIdentifier{client=ClientIdentifier&lt;/p&gt;
{frontend=member-3-frontend-datastore-Shard-id-ints!, genera
tion=0}, history=7, cookie=0}, sequence=0, replyTo=Actor&lt;a href=&quot;#-908684957&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;akka://opendaylight-cluster-data/user/$m#-908684957&lt;/a&gt;} with Envelope{sessionId=0, txSequence=0, message=LocalHistorySuccess{target=LocalHistoryIdentifier{client=ClientIdentifier{frontend=member-3-frontend-datastore-Shard-id-ints!, generation=0}
&lt;p&gt;, history=7, cook&lt;br/&gt;
ie=0}, sequence=0}}&lt;br/&gt;
2017-05-29 09:57:17,528 | WARN  | lt-dispatcher-32 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.1.SNAPSHOT | member-3-shard-id-ints!-config (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=1, succ&lt;br/&gt;
ess=true, followerId=member-1-shard-id-ints!-config, logLastIndex=5, logLastTerm=1, forceInstallSnapshot=false, payloadVersion=5, raftVersion=3], timeSinceLastActivity : 12552, lastApplied : 5, commitIndex : 5&lt;br/&gt;
2017-05-29 09:57:17,529 | DEBUG | ult-dispatcher-4 | AbstractClientConnection         | 197 - org.opendaylight.controller.cds-access-client - 1.1.1.SNAPSHOT | Completing TransmittedConnectionEntry{request=CreateLocalHistoryRequest{target=LocalHistoryIdentifier{client=ClientIdentifier&lt;/p&gt;
{frontend=member-3-frontend-datastore-Shard-id-ints!, generation=0}, history=7, cookie=0}, sequence=0, replyTo=Actor&lt;a href=&quot;#-908684957&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;akka://opendaylight-cluster-data/user/$m#-908684957&lt;/a&gt;}, enqueuedTicks=488843276375, sessionId=0, txSequence=0} with Envelope{sessionId=0, txSequence=0, message=LocalHistorySuccess{target=LocalHistoryIdentifier{client=ClientIdentifier{frontend=member-3-frontend-datastore-Shard-id-ints!, generation=0}
&lt;p&gt;, history=7, cookie=0}, sequence=0}}&lt;br/&gt;
2017-05-29 09:57:17,529 | DEBUG | ult-dispatcher-4 | AbstractClientHistory            | 199 - org.opendaylight.controller.sal-distributed-datastore - 1.5.1.SNAPSHOT | Create history response LocalHistorySuccess{target=LocalHistoryIdentifier{client=ClientIdentifier&lt;/p&gt;
{frontend=member-3-frontend-datastore-Shard-id-ints!, generation=0}
&lt;p&gt;, history=7, cookie=0}, sequence=0}&lt;br/&gt;
2017-05-29 09:57:23,948 | WARN  | ult-dispatcher-5 | ShardDataTree                    | 199 - org.opendaylight.controller.sal-distributed-datastore - 1.5.1.SNAPSHOT | member-3-shard-id-ints!-config: Current transaction member-3-datastore-Shard-id-ints!-fe-0-chn-7-txn-0-0 has timed out after 15000 ms in state COMMIT_PENDING&lt;br/&gt;
2017-05-29 09:57:23,949 | WARN  | ult-dispatcher-5 | ShardDataTree                    | 199 - org.opendaylight.controller.sal-distributed-datastore - 1.5.1.SNAPSHOT | member-3-shard-id-ints!-config: Transaction member-3-datastore-Shard-id-ints!-fe-0-chn-7-txn-0-0 is still committing, cannot abort&lt;br/&gt;
2017-05-29 09:57:26,118 | WARN  | lt-dispatcher-22 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.1.SNAPSHOT | member-3-shard-car-people-operational: At least 1 followers need to be active, Switching member-3-shard-car-people-operational from Leader to IsolatedLeader&lt;br/&gt;
2017-05-29 09:57:26,118 | WARN  | ult-dispatcher-3 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.1.SNAPSHOT | member-3-shard-prefix-configuration-shard-config: At least 1 followers need to be active, Switching member-3-shard-prefix-configuration-shard-config from Leader to IsolatedLeader&lt;br/&gt;
2017-05-29 09:57:26,118 | WARN  | lt-dispatcher-23 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.1.SNAPSHOT | member-3-shard-inventory-operational: At least 1 followers need to be active, Switching member-3-shard-inventory-operational from Leader to IsolatedLeader&lt;br/&gt;
2017-05-29 09:57:26,118 | WARN  | ult-dispatcher-4 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.1.SNAPSHOT | member-3-shard-people-operational: At least 1 followers need to be active, Switching member-3-shard-people-operational from Leader to IsolatedLeader&lt;br/&gt;
2017-05-29 09:57:26,119 | WARN  | lt-dispatcher-20 | EntityOwnershipShard             | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.1.SNAPSHOT | member-3-shard-entity-ownership-operational: At least 1 followers need to be active, Switching member-3-shard-entity-ownership-operational from Leader to IsolatedLeader&lt;br/&gt;
2017-05-29 09:57:26,119 | WARN  | ult-dispatcher-5 | Shard                            | 192 - org.opendaylight.controller.sal-clustering-commons - 1.5.1.SNAPSHOT | member-3-shard-topology-operational: At least 1 followers need to be active, Switching member-3-shard-topology-operational from Leader to IsolatedLeader&lt;/p&gt;

&lt;p&gt;I assume this run included &lt;a href=&quot;https://git.opendaylight.org/gerrit/57751&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/57751&lt;/a&gt;, which would mean that ShardDataTree has seen the data as replicated, but in fact it wasn&apos;t (at least not visible on the new leader).&lt;/p&gt;</comment>
                            <comment id="52080" author="rovarga" created="Mon, 29 May 2017 14:37:45 +0000"  >&lt;p&gt;Tom, is it possible that appendentries batching or something around this is playing tricks on us?&lt;/p&gt;

&lt;p&gt;I mean, in case of going into leader isolation, is there any way we can see a payload as replicated, but then the next leader does not see it (which would be raft violation, I think) ?&lt;/p&gt;</comment>
                            <comment id="52081" author="tpantelis" created="Mon, 29 May 2017 14:50:36 +0000"  >&lt;p&gt;(In reply to Robert Varga from comment #16)&lt;br/&gt;
&amp;gt; Tom, is it possible that appendentries batching or something around this is&lt;br/&gt;
&amp;gt; playing tricks on us?&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; I mean, in case of going into leader isolation, is there any way we can see&lt;br/&gt;
&amp;gt; a payload as replicated, but then the next leader does not see it (which&lt;br/&gt;
&amp;gt; would be raft violation, I think) ?&lt;/p&gt;

&lt;p&gt;That shouldn&apos;t happen. In 3-node, if a payload was replicated then at least one of the other nodes, at least persisted it, even if it&apos;s not committed/applied to state yet. If it was If it was replicated to say node2 but not node3 and the leader is then isolated and an election occurs in the other partition, then node2 should become leader b/c it&apos;s log is more up-to-date.&lt;/p&gt;</comment>
                            <comment id="52082" author="rovarga" created="Mon, 29 May 2017 15:23:03 +0000"  >&lt;p&gt;Right, now I am fishing a bit, does that also mean it will get committed to state by odl2?&lt;/p&gt;

&lt;p&gt;I think the intent of onPayloadReplicated at shard level is to say that the entry is safely replicated no matter what and I am pretty sure (but will recheck) that we respond to the create request only after persistence comes back.&lt;/p&gt;</comment>
                            <comment id="52083" author="tpantelis" created="Mon, 29 May 2017 15:33:35 +0000"  >&lt;p&gt;(In reply to Robert Varga from comment #18)&lt;br/&gt;
&amp;gt; Right, now I am fishing a bit, does that also mean it will get committed to&lt;br/&gt;
&amp;gt; state by odl2?&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; I think the intent of onPayloadReplicated at shard level is to say that the&lt;br/&gt;
&amp;gt; entry is safely replicated no matter what and I am pretty sure (but will&lt;br/&gt;
&amp;gt; recheck) that we respond to the create request only after persistence comes&lt;br/&gt;
&amp;gt; back.&lt;/p&gt;

&lt;p&gt;I assume you mean Shard#applyState -&amp;gt; ShardDataTree#applyReplicatedPayload. applyState is called when an entry is committed after consensus is reached.&lt;/p&gt;

&lt;p&gt;When a node wins an election, it will first try to commit/apply any unapplied entries from the prior term before switching to Leader (PreLeader state). It does this by persisting a NoopPayload with the new term - if that gets consensus then the NoopPayload and all prior entries are applied.&lt;/p&gt;</comment>
                            <comment id="52084" author="rovarga" created="Mon, 29 May 2017 15:47:57 +0000"  >&lt;p&gt;Right, so from that perspective it should work. Oh well, back to log-digging.&lt;/p&gt;</comment>
                            <comment id="52085" author="vrpolak" created="Thu, 8 Jun 2017 14:06:19 +0000"  >&lt;p&gt;Not sure if there was a regression or this is a heisenbug, but recent run on RelEng sees the same behavior as in comment #4 (as opposed to #6).&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://logs.opendaylight.org/releng/jenkins092/controller-csit-3node-clustering-only-carbon/736/log.html.gz#s1-s30-t1-k2-k25-k1-k1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://logs.opendaylight.org/releng/jenkins092/controller-csit-3node-clustering-only-carbon/736/log.html.gz#s1-s30-t1-k2-k25-k1-k1&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="26182">CONTROLLER-1628</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="26218">CONTROLLER-1664</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13660" name="log.html" size="440761" author="pgubka@cisco.com" created="Thu, 4 May 2017 11:23:44 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8371</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=8371]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10324"><![CDATA[Carbon-SR1]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02rwf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>