<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:56:50 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-1950] CDS frontend incorrectly handles root overwrite with multiple shards</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1950</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;When writing data to path &quot;/&quot; it is written only to default shard without affecting the others.&lt;/p&gt;

&lt;p&gt;Picture this:&lt;br/&gt;
 We want to replicate primary site to secondary. The primary contains data in 3 shards- topology, inventory and default. &lt;br/&gt;
 Getting this state and writing it to the secondary datastore will write everything only to the default shard (even though there is data which should be written to different shards).&#160;&lt;br/&gt;
 Furthermore if the secondary datastore contained any data in those other shards, this data won&apos;t be overwritten.&#160;&lt;/p&gt;

&lt;p&gt;Committing WRITE transaction to the ROOT (path &quot;/&quot;) should delete everything and then correctly write the data to the right shards. So that after the write&#160;succeeds the datastore only contains the written data.&lt;/p&gt;</description>
                <environment></environment>
        <key id="32803">CONTROLLER-1950</key>
            <summary>CDS frontend incorrectly handles root overwrite with multiple shards</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="rovarga">Robert Varga</assignee>
                                    <reporter username="tibor.kral">Tibor Kr&#225;l</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Jun 2020 13:00:04 +0000</created>
                <updated>Fri, 26 Jun 2020 21:22:07 +0000</updated>
                            <resolved>Fri, 26 Jun 2020 21:22:07 +0000</resolved>
                                                    <fixVersion>Magnesium SR2</fixVersion>
                    <fixVersion>Sodium SR4</fixVersion>
                    <fixVersion>2.0.3</fixVersion>
                                    <component>clustering</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="68265" author="rovarga" created="Thu, 25 Jun 2020 13:13:14 +0000"  >&lt;p&gt;This is a failure on part of CDS &#8211; if there are multiple shards and the write target is YangInstanceIdentifier.empty(), it needs to split the data being written according to the sharding strategy.&lt;/p&gt;

&lt;p&gt;This is a counterpart to &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1932&quot; title=&quot;Provide support for Root DTCL reacting to all modifications even in sharded datastore&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1932&quot;&gt;&lt;del&gt;CONTROLLER-1932&lt;/del&gt;&lt;/a&gt; and complements the logic done in the read() path.&lt;/p&gt;</comment>
                            <comment id="68266" author="rovarga" created="Thu, 25 Jun 2020 13:37:11 +0000"  >&lt;p&gt;This essentially means that neither merge(), write(), nor delete() paths in TransactionProxy do the right thing with respect to module-based shard splitting. Note how the read() path is handled, simply because that is required for NETCONF.&lt;/p&gt;

&lt;p&gt;In the modification paths, though:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;delete() has to issue delete() to all shards&lt;/li&gt;
	&lt;li&gt;merge() need to traverse each data child, lookup the correct shard, create per-shard ContainerNodes for each touched shard and issue merge() to&lt;/li&gt;
	&lt;li&gt;write() is a combination of delete and merge: i.e. create ContainerNodes for &lt;b&gt;all&lt;/b&gt; shards and issue write() to all of them (even if the container is empty)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="32804">CONTROLLER-1951</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="31972">CONTROLLER-1913</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="32558">CONTROLLER-1932</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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03tb3:</customfieldvalue>

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