<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:56:02 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-1630] Follower not sync&apos;ing up after rejoining cluster</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1630</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;I frequently see cases where the follower prints the following after cluster is recovered. It prints it forever and does not seem to recover.&lt;/p&gt;

&lt;p&gt;2017-04-07 11:24:41,471 | INFO  | lt-dispatcher-20 | Shard                            | 187 - org.opendaylight.controller.sal-akka-raft - 1.4.3.Boron-SR3 | member-2-shard-default-operational (Follower): The log is not empty but the prevLogIndex 1685 was not found in it - lastIndex: 1685, snapshotIndex: -1&lt;br/&gt;
2017-04-07 11:24:41,471 | INFO  | lt-dispatcher-20 | Shard                            | 187 - org.opendaylight.controller.sal-akka-raft - 1.4.3.Boron-SR3 | member-2-shard-default-operational (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply &lt;span class=&quot;error&quot;&gt;&amp;#91;term=23, success=false, followerId=member-2-shard-default-operational, logLastIndex=1685, logLastTerm=9, forceInstallSnapshot=false, payloadVersion=5, raftVersion=3&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26184">CONTROLLER-1630</key>
            <summary>Follower not sync&apos;ing up after rejoining cluster</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="-1">Unassigned</assignee>
                                    <reporter username="srini.seetharaman@gmail.com">Srini Seetharaman</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Apr 2017 15:03:36 +0000</created>
                <updated>Tue, 25 Jul 2023 08:24:29 +0000</updated>
                            <resolved>Tue, 22 May 2018 10:50:59 +0000</resolved>
                                                                    <component>clustering</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="51951" author="tpantelis" created="Wed, 12 Apr 2017 02:46:23 +0000"  >&lt;p&gt;I think a simple solution is to treat that particular out-of-sync scenario such that the leader forces an install snapshot.&lt;/p&gt;

&lt;p&gt;However the out-of-sync scenario may be a symptom of another issue which resulted in an index gap. In order to determine that, we need to know what led up to the issue. It would be helpful to reproduce with org.opendaylight.controller.cluster.datastore.Shard debug enabled and provide the logs and the exact steps that were taken to reproduce along with time stamps.&lt;/p&gt;</comment>
                            <comment id="51952" author="tpantelis" created="Sat, 15 Apr 2017 22:51:44 +0000"  >&lt;p&gt;Looking at the log message, the leader&apos;s previous index, 1685, is the same as the follower&apos;s last index so it &lt;b&gt;should&lt;/b&gt; find in the index in the journal log. Since the snapshotIndex was -1, there was no prior snapshot which means this check was satisfied in AbstractReplicatedLogImpl#get:&lt;/p&gt;

&lt;p&gt;   if (adjustedIndex &amp;lt; 0 || adjustedIndex &amp;gt;= journal.size()) &lt;/p&gt;
{
       // physical index should be less than list size and &amp;gt;= 0
       return null;
   }

&lt;p&gt;and lookup failed. Clearly the actual journal size is less than 1685 (adjustedIndex) even though the last entry&apos;s index is 1685 which means there&apos;s a gap in the journal list/array. The only known way this happens in Boron (that I recall) is if the operational persistent flag is changed from false to true or if one node has persistence enabled while another doesn&apos;t. If that wasn&apos;t the case in this scenario, then there&apos;s another issue and we&apos;d need to reproduce with debug on.&lt;/p&gt;</comment>
                            <comment id="51953" author="rovarga" created="Thu, 24 Aug 2017 13:13:16 +0000"  >&lt;p&gt;Does this happen with a newer release train (Carbon/Nitrogen)?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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>8199</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=8199]]></customfieldvalue>

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

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