<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:53:32 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-647] onDataChange notification is not returning any data to the getCreatedData and getModifiedData function calls. Data change notification does not seem to work.</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-647</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;After rebase on July 24th, the AsyncDataChangeEvent getCreatedData and getUpdatedData is no longer returning any data. &lt;br/&gt;
I have uploaded the sample code to git fetch &lt;a href=&quot;https://git.opendaylight.org/gerrit/controller&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/controller&lt;/a&gt; refs/changes/04/8804/2 &amp;amp;&amp;amp; git checkout FETCH_HEAD&lt;/p&gt;

&lt;p&gt;Essentially, I am creating a node extension, and then registering for data changes on the node extension.&lt;br/&gt;
dataChangeListenerRegistration = dataService.registerDataChangeListener(LogicalDatastoreType.CONFIGURATION,InstanceIdentifier.builder(Nodes.class)	.child(Node.class).augmentation(SampleTestNode.class).toInstance(),wakeupListener,DataChangeScope.SUBTREE);&lt;/p&gt;


&lt;p&gt;and then in the onDataChanged method:&lt;br/&gt;
public void onDataChanged(final AsyncDataChangeEvent&amp;lt;InstanceIdentifier&amp;lt;?&amp;gt;, DataObject&amp;gt; change) {&lt;br/&gt;
        Map&amp;lt;InstanceIdentifier&amp;lt;?&amp;gt;, DataObject&amp;gt; created = change.getCreatedData();&lt;br/&gt;
        Map&amp;lt;InstanceIdentifier&amp;lt;?&amp;gt;, DataObject&amp;gt; modified = change.getUpdatedData();&lt;br/&gt;
        if(created.isEmpty()) &lt;/p&gt;
{
            System.out.println(&quot;created map is empty&quot;);
        }
&lt;p&gt;        if(modified.isEmpty()) &lt;/p&gt;
{
            System.out.println(&quot;modified map is empty&quot;);
        }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;In both the created/updated scenarios, the appropriate maps are empty.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="25201">CONTROLLER-647</key>
            <summary>onDataChange notification is not returning any data to the getCreatedData and getModifiedData function calls. Data change notification does not seem to work.</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="10000">Done</resolution>
                                        <assignee username="jhajnar@cisco.com">Jan Hajnar</assignee>
                                    <reporter username="ramkumar.gowrishankar@gmail.com">Ramkumar Gowrishankar</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Jul 2014 20:11:42 +0000</created>
                <updated>Wed, 6 Aug 2014 09:24:23 +0000</updated>
                            <resolved>Wed, 6 Aug 2014 09:24:23 +0000</resolved>
                                    <version>Helium</version>
                                                    <component>mdsal</component>
                        <due>Tue, 5 Aug 2014 00:00:00 +0000</due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="48763" author="jhajnar@cisco.com" created="Tue, 5 Aug 2014 11:27:58 +0000"  >&lt;p&gt;fix: &lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/9687/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/9687/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="23355">BGPCEP-115</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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>1418</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=1418]]></customfieldvalue>

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

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

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