<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:56:27 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-1786] Jolokia lookup says leader exists but karaf logs says no leader</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1786</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;Scenario of 3-node cluster:- &lt;br/&gt;
Bring all nodes up, transactions (car test) go through.&lt;br/&gt;
Shut down leader (default-config) in 3 nodes  (say node 1)&lt;br/&gt;
Shut down leader (default-config) in 2 nodes. (say node 2)&lt;/p&gt;

&lt;p&gt;Bring up any of the shut down node (say node 2)&lt;br/&gt;
Karaf logs says node2 didn&apos;t join cluster, but jolokia lookup &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; for shard-default-config shows &lt;br/&gt;
it has a leader. &lt;br/&gt;
When we try transactions  (car tests - check karaf logs ) it fails .&lt;/p&gt;
</description>
                <environment></environment>
        <key id="28712">CONTROLLER-1786</key>
            <summary>Jolokia lookup says leader exists but karaf logs says no leader</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.opendaylight.org/images/icons/priorities/critical.svg">High</priority>
                        <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="10000">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="SaiMarapaReddy">Sai MarapaReddy</reporter>
                        <labels>
                    </labels>
                <created>Tue, 7 Nov 2017 21:51:26 +0000</created>
                <updated>Thu, 2 Aug 2018 12:42:17 +0000</updated>
                            <resolved>Thu, 2 Aug 2018 12:42:17 +0000</resolved>
                                                    <fixVersion>Fluorine</fixVersion>
                    <fixVersion>Neon</fixVersion>
                                    <component>clustering</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="59984" author="sai.marapareddy@gmail.com" created="Tue, 7 Nov 2017 22:15:16 +0000"  >&lt;p&gt;&lt;b&gt;For jolokia&lt;/b&gt; the leader information is fetched from &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; which in turn fetches from &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;&lt;br/&gt;
	&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; controller/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/jmx/mbeans/shard/ShardStats.java&lt;br/&gt;
	&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; controller/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/client/messages/OnDemandRaftState.java&lt;br/&gt;
jolokia output -  &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/attachment/14221/14221_jolokia+output.txt&quot; title=&quot;jolokia output.txt attached to CONTROLLER-1786&quot;&gt;jolokia output.txt&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.opendaylight.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;

&lt;p&gt;&lt;b&gt;karaf logs&lt;/b&gt;&lt;br/&gt;
says Shard member-3-shard-default-config currently has no leader. Attached snippet of the karaf log &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/attachment/14220/14220_leader_not_found.txt&quot; title=&quot;leader_not_found.txt attached to CONTROLLER-1786&quot;&gt;leader_not_found.txt&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.opendaylight.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;


</comment>
                            <comment id="59985" author="sai.marapareddy@gmail.com" created="Tue, 7 Nov 2017 22:19:42 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=tpantelis&quot; class=&quot;user-hover&quot; rel=&quot;tpantelis&quot;&gt;tpantelis&lt;/a&gt; &lt;br/&gt;
The code path in karaf logs differ from the code path that jolokia fetches the leader from. Are they expected to differ ? &lt;/p&gt;</comment>
                            <comment id="64481" author="tpantelis" created="Thu, 2 Aug 2018 12:41:47 +0000"  >&lt;p&gt;I&apos;m not really clear on the purpose of this Jira - it seems it&apos;s really asking a question rather than reporting a bug.&#160;&lt;/p&gt;

&lt;p&gt;The code paths to obtain the leader info in the 2 scenarios differ. jolokia is an on-demand read from the MBean. For transactions, the shard leader&#160;info is resolved and cached on the front-end for efficiency by the ShardManager via messages sent from the shard.&#160;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="30150">NETVIRT-1315</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="30549">CONTROLLER-1856</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="19934">OVSDB-434</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="14221" name="jolokia output.txt" size="1895" author="SaiMarapaReddy" created="Tue, 7 Nov 2017 22:26:30 +0000"/>
                            <attachment id="14220" name="leader_not_found.txt" size="7384" author="SaiMarapaReddy" created="Tue, 7 Nov 2017 22:14: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_10002" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>NETVIRT-996</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i037d3:</customfieldvalue>

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