<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:53:48 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-762] Applications that use the MD-SAL Datastore should properly handle OptimisticLock and ConflictingModification exceptions</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-762</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;Many applications that use the MD-SAL Datastore do not properly handle commit failures that may happen due to conflicting modifications or optimistic lock exceptions. Many applications were written pre-hydrogen when these exceptions did not exist. These applications need to be modified to ensure one of two things,&lt;/p&gt;

&lt;p&gt;a. Minimizing the occurrences of conflicts by using some of the new APIs in the datstore.&lt;/p&gt;

&lt;p&gt;b. Properly handling any exceptions that happen to ensure that data is not lost.&lt;/p&gt;

&lt;p&gt;Here are some initial thoughts from Ed,&lt;/p&gt;

&lt;p&gt;1)  Mitigation Strategies (reduce incidence):&lt;br/&gt;
        a)  Can you use merge instead of put?&lt;br/&gt;
        b)  If you are doing an ordered set of things, are you using a TransactionChain?&lt;br/&gt;
        c)  Are you doing a write in response to a Notification?  Is anyone else&#8230; if so, probably only one of you should do the write, and the others use DataChangeListeners&lt;/p&gt;

&lt;p&gt;2)  In spite of Mitigation, you still need to handle it so:&lt;br/&gt;
        a)  Register a Callback for the Future to handle the failure&lt;br/&gt;
        b)  At the very minimum: Log&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="25316">CONTROLLER-762</key>
            <summary>Applications that use the MD-SAL Datastore should properly handle OptimisticLock and ConflictingModification exceptions</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</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="-1">Unassigned</assignee>
                                    <reporter username="moraja@cisco.com">Moiz Raja</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Sep 2014 05:21:07 +0000</created>
                <updated>Thu, 19 Oct 2017 22:13:20 +0000</updated>
                            <resolved>Mon, 27 Oct 2014 10:24:50 +0000</resolved>
                                    <version>Helium</version>
                                                    <component>mdsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="49038" author="railor33@gmail.com" created="Wed, 24 Sep 2014 17:24:30 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/11541/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/11541/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="49039" author="railor33@gmail.com" created="Wed, 24 Sep 2014 17:25:56 +0000"  >&lt;p&gt;Sorry, undoing my comment &amp;#8211; was in the wrong bug.&lt;/p&gt;</comment>
                            <comment id="49040" author="tony.tkacik@gmail.com" created="Mon, 27 Oct 2014 10:24:50 +0000"  >&lt;p&gt;THis bug should be opened for particular projects, who offends API contracts.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="25312">CONTROLLER-758</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="25313">CONTROLLER-759</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="21520">L2SWITCH-7</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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>1694</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=1694]]></customfieldvalue>

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

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

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