<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:56:05 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-1647] C: prefix based shard created improperly</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1647</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;odl: &lt;a href=&quot;https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf/0.6.0-SNAPSHOT/distribution-karaf-0.6.0-20170427.093211-5052.zip&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf/0.6.0-SNAPSHOT/distribution-karaf-0.6.0-20170427.093211-5052.zip&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;when creating a new prefix shard with details&lt;br/&gt;
&amp;lt;input xmlns=&quot;tag:opendaylight.org,2017:controller:yang:lowlevel:control&quot; xmlns:odl-mdsal-lowlevel-target=&quot;tag:opendaylight.org,2017:controller:yang:lowlevel:target&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;prefix&amp;gt;/odl-mdsal-lowlevel-target:id-ints&amp;lt;/prefix&amp;gt;&lt;br/&gt;
  &amp;lt;replicas&amp;gt;member-1&amp;lt;/replicas&amp;gt;&amp;lt;replicas&amp;gt;member-2&amp;lt;/replicas&amp;gt;&amp;lt;replicas&amp;gt;member-3&amp;lt;/replicas&amp;gt;&lt;br/&gt;
&amp;lt;/input&amp;gt;&lt;/p&gt;


&lt;p&gt;a shard is created, but when checking a shard details via jolokia, details for&lt;br/&gt;
member-1-shard-id-ints!-config member-2-shard-id-ints!-config member-3-shard-id-ints!-config show, that they have no peers and each one is a leader, so there are 3 leaders, one on each node&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26201">CONTROLLER-1647</key>
            <summary>C: prefix based shard created improperly</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="jmorvay@cisco.com">Jakub Morvay</assignee>
                                    <reporter username="pgubka@cisco.com">Peter Gubka</reporter>
                        <labels>
                    </labels>
                <created>Thu, 27 Apr 2017 18:39:23 +0000</created>
                <updated>Tue, 25 Jul 2023 08:24:32 +0000</updated>
                            <resolved>Fri, 5 May 2017 00:11:44 +0000</resolved>
                                                                    <component>clustering</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="52033" author="tpantelis" created="Thu, 27 Apr 2017 22:03:29 +0000"  >&lt;p&gt;Does this need to block the release? Are prefix shards even being used in yet in Carbon?&lt;/p&gt;

&lt;p&gt;Tomas - can you look into this?&lt;/p&gt;</comment>
                            <comment id="52034" author="jmorvay@cisco.com" created="Fri, 28 Apr 2017 07:54:33 +0000"  >&lt;p&gt;I think the root cause lies here&lt;br/&gt;
&lt;a href=&quot;https://github.com/opendaylight/controller/blob/be338c9e1dab83e2a5ff21819b92b934ef32faee/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/ShardManager.java#L562&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/controller/blob/be338c9e1dab83e2a5ff21819b92b934ef32faee/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/ShardManager.java#L562&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Peers are ignored during creation of prefix based shard, so this new shard automatically becomes leader.&lt;/p&gt;

&lt;p&gt;I tried to play with this a little bit and change this to not to ignore peers. Locally, I can see the prefix based shards are created correctly, there is only one leader and all peers are taking part in election.&lt;/p&gt;

&lt;p&gt;However, now there is some problem with starting DistributedShardedDOMDataTree, default shards in particular.&lt;/p&gt;

&lt;p&gt;I cannot really tell, if this should block the release, but without this, we cannot use prefix based shards in carbon cluster.&lt;/p&gt;</comment>
                            <comment id="52035" author="tpantelis" created="Sat, 29 Apr 2017 01:56:19 +0000"  >&lt;p&gt;Downgrading to major to keep the blocker police off my back. Prefix shard functionality was just recently added so AFAIK no app is using it at this point and thus doesn&apos;t need to block the release.&lt;/p&gt;</comment>
                            <comment id="52036" author="jmorvay@cisco.com" created="Thu, 4 May 2017 05:20:34 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/56498/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/56498/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <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>8328</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=8328]]></customfieldvalue>

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

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