<!-- 
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-1409] Listening on root node does not work in registerDataChangeListener</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1409</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;If I register a listener like this&lt;/p&gt;

&lt;p&gt;domDataBroker.registerDataChangeListener(LogicalDatastoreType.CONFIGURATION, YangInstanceIdentifier.builder().build(), new myDOMDataChangeListener(), AsyncDataBroker.DataChangeScope.SUBTREE);&lt;/p&gt;

&lt;p&gt;I get exception java.util.NoSuchElementException&lt;br/&gt;
	at com.google.common.collect.Iterators$1.next(Iterators.java:80)&lt;br/&gt;
	at org.opendaylight.controller.cluster.datastore.shardstrategy.ShardStrategyFactory.getModuleName(ShardStrategyFactory.java:47)&lt;br/&gt;
	at org.opendaylight.controller.cluster.datastore.shardstrategy.ShardStrategyFactory.getStrategy(ShardStrategyFactory.java:36)&lt;br/&gt;
	at org.opendaylight.controller.cluster.datastore.DistributedDataStore.registerChangeListener(DistributedDataStore.java:128)&lt;br/&gt;
	at org.opendaylight.controller.cluster.databroker.AbstractDOMBroker.registerDataChangeListener(AbstractDOMBroker.java:98)&lt;br/&gt;
	at org.opendaylight.controller.cluster.databroker.AbstractDOMBroker.registerDataChangeListener(AbstractDOMBroker.java:34)&lt;br/&gt;
	at org.opendaylight.controller.config.yang.netconf.mdsal.notification.NetconfMdsalNotificationMapperModule.createInstance(NetconfMdsalNotificationMapperModule.java:46)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25963">CONTROLLER-1409</key>
            <summary>Listening on root node does not work in registerDataChangeListener</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="10001">Won&apos;t Do</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jmorvay@cisco.com">Jakub Morvay</reporter>
                        <labels>
                    </labels>
                <created>Fri, 21 Aug 2015 11:04:30 +0000</created>
                <updated>Thu, 19 Oct 2017 21:26:51 +0000</updated>
                            <resolved>Thu, 24 Aug 2017 13:16:31 +0000</resolved>
                                    <version>Beryllium</version>
                                                    <component>clustering</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="50990" author="moraja@cisco.com" created="Tue, 1 Sep 2015 15:11:27 +0000"  >&lt;p&gt;Jakub what is the use case for this?&lt;/p&gt;</comment>
                            <comment id="50991" author="rovarga" created="Fri, 15 Jul 2016 10:36:19 +0000"  >&lt;p&gt;The use case for this BUG-1045, which needs to collect all changes happening in the data store. This works just fine with IMDS, but the CDS implementation fails here, simply because it cannot determine the single shard for the listener.&lt;/p&gt;

&lt;p&gt;The implementation should instantiate listeners for each shard in existence and combine the results to provide a seamless experience.&lt;/p&gt;</comment>
                            <comment id="50992" author="rovarga" created="Fri, 15 Jul 2016 10:45:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/41887&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/41887&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="50993" author="rovarga" created="Wed, 3 Aug 2016 18:03:53 +0000"  >&lt;p&gt;The fix merged does not completely solve the problem, as it does not work across shards (e.g. it does not report data in shards outside of the default shard).&lt;/p&gt;</comment>
                            <comment id="50994" author="rovarga" created="Thu, 24 Aug 2017 13:16:31 +0000"  >&lt;p&gt;This issue will not be fixed for DataChangeListeners, since they are deprecated. Underlying issue is addressed in the MD-SAL&apos;s Consumer APIs, which properly assemble changes from a shard hierarchy, supporting listening on root (as it no longer is special).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="21046">NETCONF-33</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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>4167</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=4167]]></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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02qe7:</customfieldvalue>

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