<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:55:29 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-1410] After controller reboot, applications don&apos;t receive data change notification with the blob of persisted config data</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1410</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;As per my understanding, when controller restarts, application subscribed for data change notification should get a notification with a blob of data that was persisted before the shutdown. OVSDB southbound plugins is not getting the data change notification with the persisted config data after controller reboots. &lt;/p&gt;

&lt;p&gt;Following are the easy steps that you can use to recreate the issues, but i believe you can try with any yang model and probably see the same issue (although i didn&apos;t try it ).&lt;/p&gt;

&lt;p&gt;1) git clone &lt;a href=&quot;https://git.opendaylight.org/gerrit/ovsdb.git&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/ovsdb.git&lt;/a&gt;&lt;br/&gt;
2) cd ovsdb&lt;br/&gt;
3) mvn clean install -DskipTests&lt;br/&gt;
4) cd ./karaf/target/assembly/bin  &lt;br/&gt;
5) ./karaf debug&lt;br/&gt;
6) wait for controller console to come up&lt;br/&gt;
7) karaf#&amp;gt; log:set TRACE org.opendaylight.ovsdb.southbound.OvsdbDataChangeListener&lt;/p&gt;

&lt;p&gt;8) wait for all the ovsdb component to come up, you will see &quot;triggerUpdate()&quot; line in the log file.&lt;br/&gt;
9)Fire following PUT restconf request to the controller (url and body are in following gist link)&lt;br/&gt;
&lt;a href=&quot;https://gist.github.com/vishnoianil/3ed803e9fb7e56d29a63&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gist.github.com/vishnoianil/3ed803e9fb7e56d29a63&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;10) Once you PUT this restconf request, you should see data change dump in the log. Something like this &lt;br/&gt;
&lt;a href=&quot;https://gist.github.com/vishnoianil/c8204224ab30d06ee408&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gist.github.com/vishnoianil/c8204224ab30d06ee408&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;11) Now reboot the controller and you won&apos;t see any dump from data change notificaiton.&lt;/p&gt;

&lt;p&gt;12) BUT you will see data still persist in the config data store. You can fire following restconf request to get the data&lt;/p&gt;

&lt;p&gt;GET: &lt;a href=&quot;http://localhost:8181/restconf/config/network-topology:network-topology/topology/ovsdb:1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/config/network-topology:network-topology/topology/ovsdb:1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;13) This is how we are doing the registration:&lt;br/&gt;
&lt;a href=&quot;https://github.com/opendaylight/ovsdb/blob/master/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbDataChangeListener.java#L55&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/ovsdb/blob/master/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbDataChangeListener.java#L55&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;14) This is where ovsdb is dumping the data change notification data:&lt;br/&gt;
 &lt;a href=&quot;https://github.com/opendaylight/ovsdb/blob/master/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbDataChangeListener.java#L72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/ovsdb/blob/master/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbDataChangeListener.java#L72&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am attaching the log for your reference.&lt;/p&gt;

&lt;p&gt;karaf.first.start.log  &amp;#8211; contains log from the first start and adding one entry to config data store&lt;br/&gt;
karaf.reboot.log &amp;#8211; contains log after reboot.&lt;/p&gt;

&lt;p&gt;Let me know if you need more data or live debug this issue.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25964">CONTROLLER-1410</key>
            <summary>After controller reboot, applications don&apos;t receive data change notification with the blob of persisted config data</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="10002">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="Avishnoi">Anil Vishnoi</reporter>
                        <labels>
                    </labels>
                <created>Mon, 24 Aug 2015 20:02:08 +0000</created>
                <updated>Thu, 19 Oct 2017 21:26:38 +0000</updated>
                            <resolved>Tue, 1 Sep 2015 15:13:04 +0000</resolved>
                                    <version>Beryllium</version>
                                                    <component>clustering</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="50998" author="vishnoianil@gmail.com" created="Mon, 24 Aug 2015 20:02:08 +0000"  >&lt;p&gt;Attachment karaf.first.start.log has been added with description: Log of first start and config entry addition&lt;/p&gt;</comment>
                            <comment id="50999" author="vishnoianil@gmail.com" created="Mon, 24 Aug 2015 20:02:51 +0000"  >&lt;p&gt;Attachment karaf.reboot.log has been added with description: Log after reboot&lt;/p&gt;</comment>
                            <comment id="50995" author="vishnoianil@gmail.com" created="Mon, 24 Aug 2015 20:08:03 +0000"  >&lt;p&gt;I see this issue on both stable/lithium and master branch.&lt;/p&gt;</comment>
                            <comment id="50996" author="muthukumaran.k@ericsson.com" created="Tue, 25 Aug 2015 14:29:27 +0000"  >&lt;p&gt;We see this for specific datastructures on stable/lithium, See this &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1399&quot; title=&quot;Clustering: DCN varies in normal and restart scenarios&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1399&quot;&gt;&lt;del&gt;CONTROLLER-1399&lt;/del&gt;&lt;/a&gt;. Are you seeing this type of behavior or DCN does not come consistently across the board ?&lt;/p&gt;</comment>
                            <comment id="50997" author="vishnoianil@gmail.com" created="Tue, 25 Aug 2015 16:02:30 +0000"  >&lt;p&gt;i see this behavior consistently, but i didn&apos;t try the same thing for other listener. I see this issue with this listener registration&lt;/p&gt;

&lt;p&gt;        InstanceIdentifier&amp;lt;Node&amp;gt; path = InstanceIdentifier&lt;br/&gt;
                .create(NetworkTopology.class)&lt;br/&gt;
                .child(Topology.class, new TopologyKey(SouthboundConstants.OVSDB_TOPOLOGY_ID))&lt;br/&gt;
                .child(Node.class);&lt;br/&gt;
        registration =&lt;br/&gt;
                db.registerDataChangeListener(LogicalDatastoreType.CONFIGURATION, path, this, DataChangeScope.SUBTREE);&lt;/p&gt;

&lt;p&gt;I think &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1399&quot; title=&quot;Clustering: DCN varies in normal and restart scenarios&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1399&quot;&gt;&lt;del&gt;CONTROLLER-1399&lt;/del&gt;&lt;/a&gt; also reports the similar issue.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="25953">CONTROLLER-1399</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13540" name="karaf.first.start.log" size="176735" author="Avishnoi" created="Mon, 24 Aug 2015 20:02:08 +0000"/>
                            <attachment id="13541" name="karaf.reboot.log" size="136996" author="Avishnoi" created="Mon, 24 Aug 2015 20:02:51 +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>4179</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=4179]]></customfieldvalue>

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

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