<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:55:17 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-1336] Clustering: Persist data lost</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1336</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;I used one node cluster.&lt;br/&gt;
1\First, I wrote data on path: &lt;br/&gt;
InstanceIdentifier.builder(VirtualRouter.class)&lt;br/&gt;
                .child(Vr.class, new VrKey(vrId)).toInstance();&lt;br/&gt;
I used put method. Restconf result is &lt;br/&gt;
1.	&amp;lt;virtual-router xmlns=&quot;urn:opendaylight:vipran:virtual-router&quot;&amp;gt;&lt;br/&gt;
2.	  &amp;lt;vr&amp;gt;&lt;br/&gt;
3.	    &amp;lt;vr-id&amp;gt;${vrname}&amp;lt;/vr-id&amp;gt;&lt;br/&gt;
4.	    &amp;lt;vr-node-a&amp;gt;&lt;br/&gt;
5.	      &amp;lt;vr-node-id&amp;gt;openflow:3&amp;lt;/vr-node-id&amp;gt;&lt;br/&gt;
               &amp;lt;ip&amp;gt;10.10.30.10&amp;lt;/ip&amp;gt;&lt;br/&gt;
6.	    &amp;lt;/vr-node-a&amp;gt;&lt;br/&gt;
7.	    &amp;lt;vr-node-a&amp;gt;&lt;br/&gt;
8.	      &amp;lt;vr-node-id&amp;gt;openflow:4&amp;lt;/vr-node-id&amp;gt;&lt;br/&gt;
              &amp;lt;ip&amp;gt;10.10.40.10&amp;lt;/ip&amp;gt;&lt;br/&gt;
9.	    &amp;lt;/vr-node-a&amp;gt;&lt;br/&gt;
10.	    &amp;lt;topology-id&amp;gt;${vrname}&amp;lt;/topology-id&amp;gt;&lt;br/&gt;
11.	    &amp;lt;vr-node-b&amp;gt;&lt;br/&gt;
12.	      &amp;lt;vr-node-id&amp;gt;openflow:1&amp;lt;/vr-node-id&amp;gt;&lt;br/&gt;
              &amp;lt;ip&amp;gt;10.10.10.10&amp;lt;/ip&amp;gt;&lt;br/&gt;
13.	    &amp;lt;/vr-node-b&amp;gt;&lt;br/&gt;
14.	    &amp;lt;vr-node-b&amp;gt;&lt;br/&gt;
15.	      &amp;lt;vr-node-id&amp;gt;openflow:2&amp;lt;/vr-node-id&amp;gt;&lt;br/&gt;
              &amp;lt;ip&amp;gt;10.10.20.10&amp;lt;/ip&amp;gt;&lt;br/&gt;
16.	    &amp;lt;/vr-node-b&amp;gt;&lt;br/&gt;
17.	  &amp;lt;/vr&amp;gt;&lt;br/&gt;
18.	&amp;lt;/virtual-router&amp;gt;&lt;/p&gt;

&lt;p&gt;2\Then, I wrote data on path: &lt;br/&gt;
InstanceIdentifier.builder(VirtualRouter.class)&lt;br/&gt;
                .child(Vr.class, new VrKey(uniIf.getVrId()))&lt;br/&gt;
                .child(VrNodeA.class, new VrNodeAKey(uniIf.getUniNode()))&lt;br/&gt;
                .child(VrNodeConnector.class, new VrNodeConnectorKey(uniIf.getUniPortName()))&lt;br/&gt;
                .child(NodeUniIf.class, new NodeUniIfKey(uniIf.getUniName())).toInstance();&lt;br/&gt;
I used merge method. Restconf result is &lt;br/&gt;
1.        &amp;lt;virtual-router xmlns=&quot;urn:opendaylight:vipran:virtual-router&quot;&amp;gt;&lt;br/&gt;
2.          &amp;lt;vr&amp;gt;&lt;br/&gt;
3.            &amp;lt;vr-id&amp;gt;${vrname}&amp;lt;/vr-id&amp;gt;&lt;br/&gt;
4.            &amp;lt;topology-id&amp;gt;${vrname}&amp;lt;/topology-id&amp;gt;&lt;br/&gt;
5.            &amp;lt;vr-node-a&amp;gt;&lt;br/&gt;
6.              &amp;lt;vr-node-id&amp;gt;openflow:3&amp;lt;/vr-node-id&amp;gt;&lt;br/&gt;
7.              &amp;lt;vr-node-connector&amp;gt;&lt;br/&gt;
8.                &amp;lt;node-connector-port-name&amp;gt;s3-eth1&amp;lt;/node-connector-port-name&amp;gt;&lt;br/&gt;
9.                &amp;lt;node-uni-if&amp;gt;&lt;br/&gt;
10.                  &amp;lt;uni-name&amp;gt;uni1&amp;lt;/uni-name&amp;gt;&lt;br/&gt;
11.                  &amp;lt;uni-node&amp;gt;openflow:3&amp;lt;/uni-node&amp;gt;&lt;br/&gt;
12.                  &amp;lt;vlan&amp;gt;1&amp;lt;/vlan&amp;gt;&lt;br/&gt;
13.                  &amp;lt;uni-description-info&amp;gt;vr1+openflow:3+s3-eth1+vlan1&amp;lt;/uni-description-info&amp;gt;&lt;br/&gt;
14.                  &amp;lt;ip-mask xmlns=&quot;urn:opendaylight:vipran:uni-bind&quot;&amp;gt;24&amp;lt;/ip-mask&amp;gt;&lt;br/&gt;
15.                  &amp;lt;vrf xmlns=&quot;urn:opendaylight:vipran:uni-bind&quot;&amp;gt;vrf1&amp;lt;/vrf&amp;gt;&lt;br/&gt;
16.                  &amp;lt;ip xmlns=&quot;urn:opendaylight:vipran:uni-bind&quot;&amp;gt;192.168.0.1&amp;lt;/ip&amp;gt;&lt;br/&gt;
17.                  &amp;lt;bridge-type xmlns=&quot;urn:opendaylight:vipran:uni-bind&quot;&amp;gt;1toN&amp;lt;/bridge-type&amp;gt;&lt;br/&gt;
18.                  &amp;lt;uni-port-name&amp;gt;s3-eth1&amp;lt;/uni-port-name&amp;gt;&lt;br/&gt;
19.                  &amp;lt;vr-id&amp;gt;${vrname}&amp;lt;/vr-id&amp;gt;&lt;br/&gt;
20.                &amp;lt;/node-uni-if&amp;gt;&lt;br/&gt;
21.              &amp;lt;/vr-node-connector&amp;gt;&lt;br/&gt;
22.              &amp;lt;ip&amp;gt;10.10.30.10&amp;lt;/ip&amp;gt;&lt;br/&gt;
23.            &amp;lt;/vr-node-a&amp;gt;&lt;br/&gt;
24.            &amp;lt;vr-node-a&amp;gt;&lt;br/&gt;
25.              &amp;lt;vr-node-id&amp;gt;openflow:4&amp;lt;/vr-node-id&amp;gt;&lt;br/&gt;
26.              &amp;lt;vr-node-connector&amp;gt;&lt;br/&gt;
27.                &amp;lt;node-connector-port-name&amp;gt;s4-eth1&amp;lt;/node-connector-port-name&amp;gt;&lt;br/&gt;
28.                &amp;lt;node-uni-if&amp;gt;&lt;br/&gt;
29.                  &amp;lt;uni-name&amp;gt;uni2&amp;lt;/uni-name&amp;gt;&lt;br/&gt;
30.                  &amp;lt;uni-node&amp;gt;openflow:4&amp;lt;/uni-node&amp;gt;&lt;br/&gt;
31.                  &amp;lt;vlan&amp;gt;2&amp;lt;/vlan&amp;gt;&lt;br/&gt;
32.                  &amp;lt;uni-description-info&amp;gt;vr1+openflow:4+s4-eth1+vlan2&amp;lt;/uni-description-info&amp;gt;&lt;br/&gt;
33.                  &amp;lt;uni-port-name&amp;gt;s4-eth1&amp;lt;/uni-port-name&amp;gt;&lt;br/&gt;
34.                  &amp;lt;vr-id&amp;gt;${vrname}&amp;lt;/vr-id&amp;gt;&lt;br/&gt;
35.                &amp;lt;/node-uni-if&amp;gt;&lt;br/&gt;
36.              &amp;lt;/vr-node-connector&amp;gt;&lt;br/&gt;
37.              &amp;lt;ip&amp;gt;10.10.40.10&amp;lt;/ip&amp;gt;&lt;br/&gt;
38.            &amp;lt;/vr-node-a&amp;gt;&lt;br/&gt;
39.            &amp;lt;vr-node-b&amp;gt;&lt;br/&gt;
40.              &amp;lt;vr-node-id&amp;gt;openflow:1&amp;lt;/vr-node-id&amp;gt;&lt;br/&gt;
41.              &amp;lt;ip&amp;gt;10.10.10.10&amp;lt;/ip&amp;gt;&lt;br/&gt;
42.            &amp;lt;/vr-node-b&amp;gt;&lt;br/&gt;
43.            &amp;lt;vr-node-b&amp;gt;&lt;br/&gt;
44.              &amp;lt;vr-node-id&amp;gt;openflow:2&amp;lt;/vr-node-id&amp;gt;&lt;br/&gt;
45.              &amp;lt;ip&amp;gt;10.10.20.10&amp;lt;/ip&amp;gt;&lt;br/&gt;
46.            &amp;lt;/vr-node-b&amp;gt;&lt;br/&gt;
47.          &amp;lt;/vr&amp;gt;&lt;br/&gt;
48.        &amp;lt;/virtual-router&amp;gt;&lt;br/&gt;
3\ I reboot ODL,vr-node-b data lost, vr-node-a remain.&lt;br/&gt;
And I confirm that before the restart I were able to see both vr-a and vr-b in the data.&lt;/p&gt;


&lt;p&gt;1.        &amp;lt;virtual-router xmlns=&quot;urn:opendaylight:vipran:virtual-router&quot;&amp;gt;&lt;br/&gt;
2.          &amp;lt;vr&amp;gt;&lt;br/&gt;
3.            &amp;lt;vr-id&amp;gt;${vrname}&amp;lt;/vr-id&amp;gt;&lt;br/&gt;
4.            &amp;lt;vr-node-a&amp;gt;&lt;br/&gt;
5.              &amp;lt;vr-node-id&amp;gt;openflow:3&amp;lt;/vr-node-id&amp;gt;&lt;br/&gt;
6.              &amp;lt;vr-node-connector&amp;gt;&lt;br/&gt;
7.                &amp;lt;node-connector-port-name&amp;gt;s3-eth1&amp;lt;/node-connector-port-name&amp;gt;&lt;br/&gt;
8.                &amp;lt;node-uni-if&amp;gt;&lt;br/&gt;
9.                  &amp;lt;uni-name&amp;gt;uni1&amp;lt;/uni-name&amp;gt;&lt;br/&gt;
10.                  &amp;lt;uni-node&amp;gt;openflow:3&amp;lt;/uni-node&amp;gt;&lt;br/&gt;
11.                  &amp;lt;vlan&amp;gt;1&amp;lt;/vlan&amp;gt;&lt;br/&gt;
12.                  &amp;lt;uni-description-info&amp;gt;vr1+openflow:3+s3-eth1+vlan1&amp;lt;/uni-description-info&amp;gt;&lt;br/&gt;
13.                  &amp;lt;vrf xmlns=&quot;urn:opendaylight:vipran:uni-bind&quot;&amp;gt;vrf1&amp;lt;/vrf&amp;gt;&lt;br/&gt;
14.                  &amp;lt;ip-mask xmlns=&quot;urn:opendaylight:vipran:uni-bind&quot;&amp;gt;24&amp;lt;/ip-mask&amp;gt;&lt;br/&gt;
15.                  &amp;lt;bridge-type xmlns=&quot;urn:opendaylight:vipran:uni-bind&quot;&amp;gt;1toN&amp;lt;/bridge-type&amp;gt;&lt;br/&gt;
16.                  &amp;lt;ip xmlns=&quot;urn:opendaylight:vipran:uni-bind&quot;&amp;gt;192.168.0.1&amp;lt;/ip&amp;gt;&lt;br/&gt;
17.                  &amp;lt;uni-port-name&amp;gt;s3-eth1&amp;lt;/uni-port-name&amp;gt;&lt;br/&gt;
18.                  &amp;lt;vr-id&amp;gt;${vrname}&amp;lt;/vr-id&amp;gt;&lt;br/&gt;
19.                &amp;lt;/node-uni-if&amp;gt;&lt;br/&gt;
20.              &amp;lt;/vr-node-connector&amp;gt;&lt;br/&gt;
21.            &amp;lt;/vr-node-a&amp;gt;&lt;br/&gt;
22.            &amp;lt;vr-node-a&amp;gt;&lt;br/&gt;
23.              &amp;lt;vr-node-id&amp;gt;openflow:4&amp;lt;/vr-node-id&amp;gt;&lt;br/&gt;
24.              &amp;lt;vr-node-connector&amp;gt;&lt;br/&gt;
25.                &amp;lt;node-connector-port-name&amp;gt;s4-eth1&amp;lt;/node-connector-port-name&amp;gt;&lt;br/&gt;
26.                &amp;lt;node-uni-if&amp;gt;&lt;br/&gt;
27.                  &amp;lt;uni-name&amp;gt;uni2&amp;lt;/uni-name&amp;gt;&lt;br/&gt;
28.                  &amp;lt;uni-node&amp;gt;openflow:4&amp;lt;/uni-node&amp;gt;&lt;br/&gt;
29.                  &amp;lt;vlan&amp;gt;2&amp;lt;/vlan&amp;gt;&lt;br/&gt;
30.                  &amp;lt;uni-description-info&amp;gt;vr1+openflow:4+s4-eth1+vlan2&amp;lt;/uni-description-info&amp;gt;&lt;br/&gt;
31.                  &amp;lt;uni-port-name&amp;gt;s4-eth1&amp;lt;/uni-port-name&amp;gt;&lt;br/&gt;
32.                  &amp;lt;vr-id&amp;gt;${vrname}&amp;lt;/vr-id&amp;gt;&lt;br/&gt;
33.                &amp;lt;/node-uni-if&amp;gt;&lt;br/&gt;
34.              &amp;lt;/vr-node-connector&amp;gt;&lt;br/&gt;
35.            &amp;lt;/vr-node-a&amp;gt;&lt;br/&gt;
36.          &amp;lt;/vr&amp;gt;&lt;br/&gt;
37.        &amp;lt;/virtual-router&amp;gt;&lt;/p&gt;

&lt;p&gt;4\If I used merge method both, it will be fine. I hava test.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="25890">CONTROLLER-1336</key>
            <summary>Clustering: Persist data lost</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="10003">Cannot Reproduce</resolution>
                                        <assignee username="tpantelis">Tom Pantelis</assignee>
                                    <reporter username="zhan_wu2001@aliyun.com">wuzhan</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 May 2015 07:29:58 +0000</created>
                <updated>Tue, 18 Aug 2015 10:36:39 +0000</updated>
                            <resolved>Tue, 18 Aug 2015 10:36:39 +0000</resolved>
                                    <version>Helium</version>
                                                    <component>clustering</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="50709" author="tony.tkacik@gmail.com" created="Tue, 26 May 2015 07:39:10 +0000"  >&lt;p&gt;Are you able to replicate this on Lithium? Or does this affects only Helium?&lt;/p&gt;</comment>
                            <comment id="50710" author="zhan_wu2001@aliyun.com" created="Tue, 26 May 2015 08:54:29 +0000"  >&lt;p&gt;(In reply to Tony Tkacik from comment #1)&lt;br/&gt;
&amp;gt; Are you able to replicate this on Lithium? Or does this affects only Helium?&lt;/p&gt;

&lt;p&gt;I only tested it on Helium sr3.&lt;br/&gt;
Where can I get stable Lithium release?&lt;/p&gt;</comment>
                            <comment id="50711" author="tony.tkacik@gmail.com" created="Tue, 26 May 2015 16:21:32 +0000"  >&lt;p&gt;Need more datapoints: are both write in same transaction?&lt;br/&gt;
Different transactions?&lt;br/&gt;
How many writes already happened to DS?&lt;/p&gt;</comment>
                            <comment id="50712" author="zhan_wu2001@aliyun.com" created="Wed, 27 May 2015 00:44:23 +0000"  >&lt;p&gt;(In reply to Tony Tkacik from comment #3)&lt;br/&gt;
&amp;gt; Need more datapoints: are both write in same transaction?&lt;br/&gt;
&amp;gt; Different transactions?&lt;br/&gt;
&amp;gt; How many writes already happened to DS?&lt;/p&gt;

&lt;p&gt;Different transaction. &lt;br/&gt;
Only this two transaction. And some other transactions in topology.&lt;/p&gt;</comment>
                            <comment id="50713" author="tpantelis" created="Wed, 3 Jun 2015 13:35:11 +0000"  >&lt;p&gt;Can you repro and upload the karaf.log?&lt;/p&gt;

&lt;p&gt;After doing that:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;shutdown the controller&lt;/li&gt;
	&lt;li&gt;edit etc/opendaylight/karaf/05-clustering.xml. Find the &amp;lt;module&amp;gt; entry with &amp;lt;name&amp;gt; &quot;distributed-config-store-module&quot;. Add the following under &amp;lt;module&amp;gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;    &amp;lt;config-properties&amp;gt;&lt;br/&gt;
        &amp;lt;shard-journal-recovery-log-batch-size&amp;gt;1&amp;lt;/shard-journal-recovery-log-batch-size&amp;gt;&lt;br/&gt;
    &amp;lt;config-properties/&amp;gt; &lt;/p&gt;

&lt;p&gt;   I assume you&apos;re writing to the config data store. If not, find &quot;distributed-operational-store-module&quot; and add the same except with tag &amp;lt;operational-properties&amp;gt;.&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;delete the journal and snapshot directories&lt;/li&gt;
	&lt;li&gt;restart the controller and see if it reproduces.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Also please test this with stable/lithium to see if it repros (w/o setting shard-journal-recovery-log-batch-size to 1).&lt;/p&gt;</comment>
                            <comment id="50714" author="moraja@cisco.com" created="Tue, 9 Jun 2015 15:26:05 +0000"  >&lt;p&gt;This may not be an issue in Lithium - Tom could not reproduce. Changing milestone to Helium-4.&lt;/p&gt;</comment>
                            <comment id="50715" author="tpantelis" created="Wed, 10 Jun 2015 01:18:26 +0000"  >&lt;p&gt;To proceed with this, we need the bug reporter to test with the shard-journal-recovery-log-batch-size setting to 1 or with the latest stable/helium which has shard-journal-recovery-log-batch-size set to 1 by default.&lt;/p&gt;

&lt;p&gt;Also test against stable/lithium.&lt;/p&gt;

&lt;p&gt;I tried to reproduce by creating a yang model to mostly match the XML data from the description and doing a put and a merge similarly in separate transactions but all the data was correctly recovered on restart in both lithium and helium.&lt;/p&gt;</comment>
                            <comment id="50716" author="tpantelis" created="Sat, 13 Jun 2015 00:39:14 +0000"  >&lt;p&gt;I&apos;ll close this by the end of next week if we don&apos;t hear back from the bug reporter.&lt;/p&gt;</comment>
                            <comment id="50717" author="moraja@cisco.com" created="Tue, 18 Aug 2015 10:36:06 +0000"  >&lt;p&gt;Closing this as there was no response from the reporter.&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>3369</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=3369]]></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_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10350"><![CDATA[Helium-4]]></customfieldvalue>

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

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