<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:33:13 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>[OPNFLWPLUG-721] Flows removed from DeviceFlowRegistry after being updated</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-721</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;The following code is from SalFlowServiceImpl.updateFlow (and annotated):&lt;/p&gt;

&lt;p&gt;//STEP 1: HERE THE FLOW IS MARKED FOR DELETION BUT NOT ACTUALLY DELETED. THE MARK IS BASED ON THE FLOW HASH&lt;/p&gt;

&lt;p&gt;deviceFlowRegistry.markToBeremoved(flowRegistryKey);&lt;/p&gt;

&lt;p&gt;if (itemLifecycleListener != null) {&lt;br/&gt;
    final FlowDescriptor flowDescriptor = deviceContext.getDeviceFlowRegistry().retrieveIdForFlow(flowRegistryKey);&lt;br/&gt;
    if (flowDescriptor != null) &lt;/p&gt;
{
        KeyedInstanceIdentifier&amp;lt;Flow, FlowKey&amp;gt; flowPath = createFlowPath(flowDescriptor,
                deviceContext.getDeviceInfo().getNodeInstanceIdentifier());
        itemLifecycleListener.onRemoved(flowPath);
    }
&lt;p&gt;}&lt;br/&gt;
//if provided, store flow id to flow registry&lt;br/&gt;
if (flowRef != null) {&lt;br/&gt;
    final FlowId flowId = flowRef.getValue().firstKeyOf(Flow.class, FlowKey.class).getId();&lt;br/&gt;
    final FlowDescriptor flowDescriptor = FlowDescriptorFactory.create(updated.getTableId(), flowId);&lt;/p&gt;

&lt;p&gt;STEP 2: HERE THE FLOW IS RE-ADDED...&lt;br/&gt;
    deviceFlowRegistry.store(updatedflowRegistryKey, flowDescriptor);&lt;/p&gt;

&lt;p&gt;STEP 3: STEP 3: DeviceFlowRegistryImpl.removeMarked is called resulting in the removing of a flow that should not be removed because it was in fact re-added right afterwards. Next time the flow is updated via an OFPST_FLOW  it is missing the flow id and therefor receives a generated &quot;alien&quot; id.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27989">OPNFLWPLUG-721</key>
            <summary>Flows removed from DeviceFlowRegistry after being updated</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="jhershbe">Josh Hershberg</assignee>
                                    <reporter username="jhershbe">Josh Hershberg</reporter>
                        <labels>
                    </labels>
                <created>Sun, 3 Jul 2016 13:52:50 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:50 +0000</updated>
                            <resolved>Tue, 19 Jul 2016 08:18:58 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="57983" author="jhershbe" created="Sun, 3 Jul 2016 13:55:07 +0000"  >&lt;p&gt;Note: STEP 3 happens in another thread and after some time.&lt;/p&gt;</comment>
                            <comment id="57984" author="jhershbe" created="Wed, 6 Jul 2016 14:16:18 +0000"  >&lt;p&gt;Hey. I already submitted a fix for this. Sorry, I forgot to assign it to me:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/41247/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/41247/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="57985" author="andrejleitner" created="Tue, 19 Jul 2016 08:18:58 +0000"  >&lt;p&gt;closing bug, since the patch was merged on master week ago&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>6145</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=6145]]></customfieldvalue>

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

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