<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:54:39 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-1083] Clustering: 2 leaders in a cluster</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1083</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;While adding flows to config store, in a 3 node cluster, the cluster went to a state with 2 leaders.&lt;/p&gt;

&lt;p&gt;Node 1: leader; Node 3: One switch connected&lt;br/&gt;
-Connect debugger to node 1 with breakpoint in AbstractListeningCommitter.onDataChanged()&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Use restconf on Node 1 to add a flow&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;When the control reaches the breakpoint in debugger, leadership changes. After this, I &quot;resume program&quot; in debugger. I had other breakpoints but control doesnt stop there.&lt;/p&gt;

&lt;p&gt;Node 2 becomes leader while other 2 are follower.&lt;/p&gt;

&lt;p&gt;Restconf call does not return yet.&lt;/p&gt;

&lt;p&gt;LastApplied and LastLogIndex increments on Node 2 and Node 3. Node 1 still shows 1 uncommitted entry.&lt;/p&gt;

&lt;p&gt;After a while Restconf call returns with akka timeout at which point Node 1 becomes leader and syncs up with other nodes in cluster. Node 2 still stays to be a leader.&lt;/p&gt;

&lt;p&gt;Node 3 initially flip-floped between node 1 and node 2 as the leader and synced data with the corresponding leader. Later it stuck with node 2 as the leader. However, add flow on node 1 synced LastApplied, LastLogIndex with that of node 1 but leadership and data (seen with restconf GET) was synced with node 2. &lt;/p&gt;

&lt;p&gt;The LastLogTerm stayed constant on all 3 nodes.&lt;/p&gt;

&lt;p&gt;I have attached a screenshot displaying current state of jmx counters on all 3 nodes.&lt;br/&gt;
Node 1 = 148&lt;br/&gt;
Node 2 = 151&lt;br/&gt;
Node 3 = 150&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25637">CONTROLLER-1083</key>
            <summary>Clustering: 2 leaders in a 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="abhishk2@cisco.com">Abhishek Kumar</reporter>
                        <labels>
                    </labels>
                <created>Wed, 7 Jan 2015 02:01:19 +0000</created>
                <updated>Thu, 19 Oct 2017 21:27:04 +0000</updated>
                            <resolved>Sun, 14 May 2017 15:24:32 +0000</resolved>
                                    <version>Post-Helium</version>
                                                    <component>clustering</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="50001" author="abhishk2@cisco.com" created="Wed, 7 Jan 2015 02:01:19 +0000"  >&lt;p&gt;Attachment Screen Shot 2015-01-06 at 5.58.03 PM.png has been added with description: JMX Counters&lt;/p&gt;</comment>
                            <comment id="49999" author="rovarga" created="Wed, 13 Apr 2016 09:45:43 +0000"  >&lt;p&gt;Is this still reproducible on Beryllium and/or Li-SR4?&lt;/p&gt;</comment>
                            <comment id="50000" author="tpantelis" created="Sun, 14 May 2017 15:24:32 +0000"  >&lt;p&gt;It looks like what happened was a split-brain scenario where node 1 became isolated and was auto-downed and quarantined by the node 2/node 3 cluster. We have since disabled auto-down for mainly this reason.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13479" name="Screen Shot 2015-01-06 at 5.58.03 PM.png" size="313409" author="abhishk2@cisco.com" created="Wed, 7 Jan 2015 02:01:19 +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>2557</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=2557]]></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="10349"><![CDATA[Unspecified]]></customfieldvalue>

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

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