<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:54:10 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-900] sal-compatibility not get up-to-date flow information.</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-900</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;sal-compatibility does not get up-to-date flow information.&lt;br/&gt;
This is the root cause of &lt;a href=&quot;https://jira.opendaylight.org/browse/VTN-40&quot; title=&quot;Failed to get up-to-date flow statistics.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;VTN-40&quot;&gt;&lt;del&gt;VTN-40&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;


&lt;p&gt;InventoryAndReadAdapter class of sal-compatibility implements readAllFlow method.&lt;br/&gt;
    List&amp;lt;FlowOnNode&amp;gt; readAllFlow(final Node node, final boolean cached).&lt;/p&gt;


&lt;p&gt;When the second parameter &quot;cached&quot; is false, this method must get flow information directly from the hardware node, and return it.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jenkins.opendaylight.org/controller/job/controller-merge/lastSuccessfulBuild/artifact/target/apidocs/org/opendaylight/controller/sal/reader/IPluginInReadService.html#readAllFlow(org.opendaylight.controller.sal.core.Node,%20boolean&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/controller/job/controller-merge/lastSuccessfulBuild/artifact/target/apidocs/org/opendaylight/controller/sal/reader/IPluginInReadService.html#readAllFlow(org.opendaylight.controller.sal.core.Node,%20boolean&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;However, the implementation of this method does not check the second parameter &quot;cached&quot;, and it always returns cached information even if the second parameter &quot;cached&quot; is false.&lt;/p&gt;


&lt;p&gt;InventoryAndReadAdapter.java&lt;br/&gt;
----------------------------&lt;/p&gt;

&lt;p&gt;controller/opendaylight/md-sal/compatibility/sal-compatibility/src/main/java/org/opendaylight/controller/sal/compatibility/InventoryAndReadAdapter.java&lt;/p&gt;


&lt;p&gt;253     @Override&lt;br/&gt;
254     public List&amp;lt;FlowOnNode&amp;gt; readAllFlow(final Node node, final boolean cached) {&lt;br/&gt;
255         final ArrayList&amp;lt;FlowOnNode&amp;gt; output = new ArrayList&amp;lt;&amp;gt;();&lt;br/&gt;
256         final Table table = readOperationalTable(node, OPENFLOWV10_TABLE_ID);&lt;br/&gt;
257         if (table != null) {&lt;br/&gt;
258             final List&amp;lt;Flow&amp;gt; flows = table.getFlow();&lt;br/&gt;
259             LOG.trace(&quot;Number of flows installed in table 0 of node {} : {}&quot;, node, flows.size());&lt;br/&gt;
260&lt;br/&gt;
261             for (final Flow flow : flows) {&lt;br/&gt;
262                 final FlowStatisticsData statsFromDataStore = flow.getAugmentation(FlowStatisticsData.class);&lt;br/&gt;
263                 if (statsFromDataStore != null) &lt;/p&gt;
{
264                     final FlowOnNode it = new FlowOnNode(ToSalConversionsUtils.toFlow(flow, node));
265                     output.add(addFlowStats(it, statsFromDataStore.getFlowStatistics()));
266                 }
&lt;p&gt;267             }&lt;br/&gt;
268         }&lt;br/&gt;
269&lt;br/&gt;
270         return output;&lt;br/&gt;
271     }&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25454">CONTROLLER-900</key>
            <summary>sal-compatibility not get up-to-date flow information.</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="Hideyuki1985">Hideyuki Tai</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Sep 2014 23:53:14 +0000</created>
                <updated>Thu, 19 Oct 2017 16:36:44 +0000</updated>
                            <resolved>Tue, 5 May 2015 15:17:23 +0000</resolved>
                                    <version>Helium</version>
                                                    <component>adsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="49414" author="colin@colindixon.com" created="Fri, 26 Sep 2014 15:10:33 +0000"  >&lt;p&gt;Is this actually blocking? Returning cached stats is the expected behavior here.&lt;/p&gt;</comment>
                            <comment id="49415" author="colin@colindixon.com" created="Fri, 26 Sep 2014 15:12:38 +0000"  >&lt;p&gt;If strictly up-to-date information is required, RPCs to do this can be accessed via the MD-SAL flow-services APIs. That could be added and fixed in the VTN.&lt;/p&gt;</comment>
                            <comment id="49416" author="hagbard@gmail.com" created="Sat, 27 Sep 2014 19:17:56 +0000"  >&lt;p&gt;There is a candidate fix here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/11631/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/11631/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hideyuki, please test.&lt;/p&gt;</comment>
                            <comment id="49417" author="hideyuki.tai@necam.com" created="Mon, 29 Sep 2014 00:49:19 +0000"  >&lt;p&gt;(In reply to Ed Warnicke from comment #3)&lt;br/&gt;
&amp;gt; There is a candidate fix here:&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/11631/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/11631/&lt;/a&gt;&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Hideyuki, please test.&lt;/p&gt;

&lt;p&gt;I&apos;ve tested the patch, and I&apos;ve added my comment into the Gerrit.&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/11631/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/11631/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It seems to me that the patch does not fix the issue.&lt;br/&gt;
When I had VTN Manager call the readAllFlow method, NPE occurred.&lt;/p&gt;</comment>
                            <comment id="49418" author="kramesha@cisco.com" created="Wed, 1 Oct 2014 22:10:26 +0000"  >&lt;p&gt;Controller: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/11631/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/11631/&lt;/a&gt; and&lt;/p&gt;

&lt;p&gt;OFP : &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/11655/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/11655/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;submitted.&lt;/p&gt;

&lt;p&gt;Hideyuki, please retest and let me know.&lt;/p&gt;</comment>
                            <comment id="49419" author="hideyuki.tai@necam.com" created="Wed, 1 Oct 2014 22:36:12 +0000"  >&lt;p&gt;(In reply to Kamal Rameshan from comment #5)&lt;br/&gt;
&amp;gt; Controller: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/11631/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/11631/&lt;/a&gt; and&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; OFP : &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/11655/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/11655/&lt;/a&gt;&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; submitted.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Hideyuki, please retest and let me know.&lt;/p&gt;

&lt;p&gt;Hi Kamal,&lt;/p&gt;

&lt;p&gt;I&apos;ve tested the patches, and confirmed that the patches fixed the &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-900&quot; title=&quot;sal-compatibility not get up-to-date flow information.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-900&quot;&gt;&lt;del&gt;CONTROLLER-900&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="49420" author="colin@colindixon.com" created="Thu, 2 Oct 2014 00:47:13 +0000"  >&lt;p&gt;Per Hideyuki&apos;s comments, I&apos;m marking this bug as fixed.&lt;/p&gt;</comment>
                            <comment id="49421" author="kramesha@cisco.com" created="Thu, 2 Oct 2014 00:57:25 +0000"  >&lt;p&gt;Hi Colin,&lt;/p&gt;

&lt;p&gt;The gerrits are not yet merged, so techinically the status should be &quot;waiting_for_review&quot;. &lt;/p&gt;

&lt;p&gt;Unless my understanding on bugzilla status is wrong.&lt;/p&gt;</comment>
                            <comment id="49422" author="tony.tkacik@gmail.com" created="Wed, 22 Oct 2014 11:10:47 +0000"  >&lt;p&gt;Please rebase controller patch in order to merge it.&lt;/p&gt;</comment>
                            <comment id="49423" author="hideyuki.tai@necam.com" created="Mon, 10 Nov 2014 21:49:49 +0000"  >&lt;p&gt;The patches have been merged into master branches.&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/11631/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/11631/&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/11655/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/11655/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And the patches also have been merged into stable/helium branches.&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/12276/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/12276/&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/11919/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/11919/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="49424" author="carolsand@gmail.com" created="Tue, 5 May 2015 15:17:23 +0000"  >&lt;p&gt;This bug is part of the project to Move all ADSAL associated component bugs to ADSAL.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="26420">VTN-40</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>2098</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=2098]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10372"><![CDATA[Helium-RC2]]></customfieldvalue>

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

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