<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:55:15 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-1328] Clustering: Recovery misses flows installed</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1328</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;Steps to reproduce&lt;br/&gt;
1. Create an OFP distribution on master&lt;br/&gt;
2. Start the controller install odl-openflowplugin-all&lt;br/&gt;
3. Connect mininet - sudo mn --controller=remote,ip=&amp;lt;host&amp;gt; --topo tree,3&lt;br/&gt;
4. Run config flow blaster a couple of times&lt;br/&gt;
     ./flow_config_blaster.py --auth --threads 5 --flows 5000 --no-delete&lt;br/&gt;
5. Check the number of flows in config and note the number&lt;br/&gt;
5. Stop controller gracefully.&lt;br/&gt;
6. Stop mininet&lt;br/&gt;
7. Start the controller&lt;br/&gt;
8. Connect mininet&lt;br/&gt;
9. Check the number of flows in config. Around 400 are missing.&lt;/p&gt;

&lt;p&gt;The log is filled with messages : &lt;/p&gt;

&lt;p&gt;2015-05-18 14:07:20,796 | INFO  | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | Recovery snapshot applied for member-1-shard-inventory-config in 2.119 s: snapshotIndex=39999, snapshotTerm=1, journal-size=0&lt;br/&gt;
2015-05-18 14:07:20,805 | INFO  | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: Received ReplicatedLogEntry for recovery: index: 40322, size: 1445&lt;br/&gt;
2015-05-18 14:07:20,806 | INFO  | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: Received ReplicatedLogEntry for recovery: index: 40323, size: 1441&lt;br/&gt;
2015-05-18 14:07:20,806 | INFO  | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: Received ReplicatedLogEntry for recovery: index: 40324, size: 1441&lt;br/&gt;
2015-05-18 14:07:20,806 | INFO  | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: Received ReplicatedLogEntry for recovery: index: 40325, size: 1445&lt;br/&gt;
2015-05-18 14:07:20,807 | INFO  | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: Received apply journal entries for recovery, applying to state: 40000 to 40322&lt;br/&gt;
2015-05-18 14:07:20,813 | ERROR | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | Log entry not found for index 40004&lt;br/&gt;
2015-05-18 14:07:20,813 | INFO  | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: Received apply journal entries for recovery, applying to state: 40004 to 40323&lt;br/&gt;
2015-05-18 14:07:20,814 | ERROR | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | Log entry not found for index 40004&lt;br/&gt;
2015-05-18 14:07:20,814 | INFO  | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: Received apply journal entries for recovery, applying to state: 40004 to 40324&lt;br/&gt;
2015-05-18 14:07:20,814 | ERROR | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | Log entry not found for index 40004&lt;br/&gt;
2015-05-18 14:07:20,814 | INFO  | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: Received apply journal entries for recovery, applying to state: 40004 to 40325&lt;br/&gt;
2015-05-18 14:07:20,814 | ERROR | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | Log entry not found for index 40004&lt;br/&gt;
2015-05-18 14:07:20,814 | INFO  | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: Received ReplicatedLogEntry for recovery: index: 40326, size: 1441&lt;br/&gt;
2015-05-18 14:07:20,814 | INFO  | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: Received apply journal entries for recovery, applying to state: 40004 to 40326&lt;br/&gt;
2015-05-18 14:07:20,814 | ERROR | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | Log entry not found for index 40005&lt;br/&gt;
2015-05-18 14:07:20,814 | INFO  | lt-dispatcher-25 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: Received ReplicatedLogEntry for recovery: index: 40327, size: 1445&lt;/p&gt;


&lt;p&gt;The snapshot was taken at index=39999 with 0 unapplied entries. &lt;br/&gt;
The persistent journal starts with the index=40322. &lt;br/&gt;
Where did the 322 logs go?&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25882">CONTROLLER-1328</key>
            <summary>Clustering: Recovery misses flows installed</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="kramesha@cisco.com">Kamal Rameshan</assignee>
                                    <reporter username="kramesha@cisco.com">Kamal Rameshan</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 May 2015 21:21:13 +0000</created>
                <updated>Tue, 2 Jun 2015 15:02:40 +0000</updated>
                            <resolved>Tue, 2 Jun 2015 15:02:40 +0000</resolved>
                                    <version>Post-Helium</version>
                                                    <component>clustering</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="50658" author="kramesha@cisco.com" created="Mon, 18 May 2015 21:28:49 +0000"  >&lt;p&gt;Attachment recovery-issue-1.log has been added with description: recovery log&lt;/p&gt;</comment>
                            <comment id="50653" author="kramesha@cisco.com" created="Mon, 18 May 2015 22:14:10 +0000"  >&lt;p&gt;Sanpshots are taken with 0 unapplied entries at batches of 20000&lt;/p&gt;

&lt;p&gt;2015-05-18 14:02:42,024 | INFO  | lt-dispatcher-33 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: Persisting of snapshot done:Snapshot=&lt;/p&gt;
{lastTerm:1, lastIndex:39999, LastAppliedIndex:39999, LastAppliedTerm:1, UnAppliedEntries size:0}
&lt;p&gt;2015-05-18 14:02:42,025 | INFO  | lt-dispatcher-33 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: Removed in-memory snapshotted entries, adjusted snaphsotIndex:39999 and term:1&lt;br/&gt;
2015-05-18 14:02:42,132 | INFO  | lt-dispatcher-21 | Shard                            | 175 - org.opendaylight.controller.sal-akka-raft - 1.2.0.SNAPSHOT | member-1-shard-inventory-config: SaveSnapshotSuccess received for snapshot&lt;/p&gt;</comment>
                            <comment id="50654" author="tpantelis" created="Mon, 18 May 2015 22:19:44 +0000"  >&lt;p&gt;The &quot;Received ReplicatedLogEntry for recovery&quot; output is logged to DEBUG. I assume you changed it to INFO in your build.&lt;/p&gt;

&lt;p&gt;I suspect when we trimmed the persistent journal after the snapshot we blew away the 322 journal entries that occurred in between the time the snapshot was started and it was committed. So something&apos;s wrong there. Either the lastSequenceNumber to delete was incorrect or the 322 entries should&apos;ve been in the unapplied list.&lt;/p&gt;</comment>
                            <comment id="50655" author="kramesha@cisco.com" created="Mon, 18 May 2015 22:33:37 +0000"  >&lt;p&gt;Yes i did change the log levels to info (somehow logback.xml change was not working for me)&lt;/p&gt;

&lt;p&gt;Am trying to dig in...&lt;/p&gt;</comment>
                            <comment id="50656" author="tpantelis" created="Mon, 18 May 2015 23:21:28 +0000"  >&lt;p&gt;I&apos;ve never used logback.xml - I think that&apos;s legacy. With karaf, you turn on debug in etc/org.pos4.pax.logging.cfg. It&apos;s standard log4j, e.g.&lt;/p&gt;

&lt;p&gt;   log4j.logger.org.opendaylight...Shard=DEBUG&lt;/p&gt;

&lt;p&gt;I&apos;ll take a look at the code as well.&lt;/p&gt;</comment>
                            <comment id="50657" author="kramesha@cisco.com" created="Thu, 28 May 2015 23:37:51 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/21372/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/21372/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13509" name="recovery-issue-1.log" size="718919" author="kramesha@cisco.com" created="Mon, 18 May 2015 21:28:49 +0000"/>
                    </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>3260</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=3260]]></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="10315"><![CDATA[Lithium]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10313"><![CDATA[Highest]]></customfieldvalue>

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

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