<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:14:25 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>[NETCONF-201] PATCH does not report 409 on OptimisticLockFailedException</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-201</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;Current Beryllium implementation of PATCH method does not seem to report errors correctly.&lt;br/&gt;
This Python utility &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/37150/30/tools/odl-mdsal-clustering-tests/patch_cars_sr2.py&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/37150/30/tools/odl-mdsal-clustering-tests/patch_cars_sr2.py&lt;/a&gt;&lt;br/&gt;
can be used to rapidly send multiple PATCH requests to ODL (odl-restconf and odl-clustering-test=-app features are assumed to be installed and ready).&lt;/p&gt;

&lt;p&gt;Sending two small requests (especially when ODL is not yet &quot;warmed up&quot;) may end up in only the first request being applied:&lt;/p&gt;

&lt;p&gt;$ python patch_cars_sr2.py --iterations=2&lt;br/&gt;
$ curl -u&apos;admin:admin&apos; 127.0.0.1:8181/restconf/config/car:cars ;echo&lt;/p&gt;

&lt;p&gt;{&quot;cars&quot;:{&quot;car-entry&quot;:[&lt;/p&gt;
{&quot;id&quot;:&quot;car-1&quot;}
&lt;p&gt;]}}&lt;/p&gt;

&lt;p&gt;Karaf.log contains exceptions, which should result in http code 409 (the Python utility would report that).&lt;/p&gt;

&lt;p&gt;2016-05-18 11:23:51,589 | INFO  | config-pusher    | ConfigPusherImpl                 | 120 - org.opendaylight.control&lt;br/&gt;
ler.config-persister-impl - 0.4.3.SNAPSHOT | Successfully pushed configuration snapshot 20-clustering-test-app.xml(odl&lt;br/&gt;
-clustering-test-app,odl-clustering-test-app)&lt;br/&gt;
2016-05-18 11:24:59,395 | WARN  | lt-dispatcher-22 | SimpleShardDataTreeCohort        | 168 - org.opendaylight.control&lt;br/&gt;
ler.sal-distributed-datastore - 1.3.3.SNAPSHOT | Store Tx member-1-txn-1-1463570699343: Conflicting modification for p&lt;br/&gt;
ath /(urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:car?revision=2014-08-18)cars/car-entry.&lt;br/&gt;
2016-05-18 11:24:59,404 | ERROR | lt-dispatcher-24 | LocalThreePhaseCommitCohort      | 168 - org.opendaylight.control&lt;br/&gt;
ler.sal-distributed-datastore - 1.3.3.SNAPSHOT | Failed to prepare transaction member-1-txn-1-1463570699343 on backend&lt;br/&gt;
OptimisticLockFailedException&lt;/p&gt;
{message=Optimistic lock failed., errorList=[RpcError [message=Optimistic lock failed., severity=ERROR, errorType=APPLICATION, tag=resource-denied, applicationTag=null, info=null, cause=org.opendaylight.yangtools.yang.data.api.schema.tree.ConflictingModificationAppliedException: Node was created by other transaction.]]}
&lt;p&gt;        at org.opendaylight.controller.cluster.datastore.SimpleShardDataTreeCohort.canCommit(SimpleShardDataTreeCohort.java:54)&lt;span class=&quot;error&quot;&gt;&amp;#91;168:org.opendaylight.controller.sal-distributed-datastore:1.3.3.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21214">NETCONF-201</key>
            <summary>PATCH does not report 409 on OptimisticLockFailedException</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="ivan.hrasko@pantheon.tech">Ivan Hrasko</assignee>
                                    <reporter username="vrpolak">Vratko Polak</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 May 2016 11:35:44 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:24 +0000</updated>
                            <resolved>Fri, 5 Aug 2016 14:14:58 +0000</resolved>
                                                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="39388" author="ivan.hrasko@pantheon.tech" created="Tue, 12 Jul 2016 10:56:56 +0000"  >&lt;p&gt;Patch: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/41703/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/41703/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="39389" author="ivan.hrasko@pantheon.tech" created="Tue, 19 Jul 2016 13:11:32 +0000"  >&lt;p&gt;Merged to Be, needs port to Boron.&lt;/p&gt;</comment>
                            <comment id="39390" author="ivan.hrasko@pantheon.tech" created="Wed, 27 Jul 2016 07:16:00 +0000"  >&lt;p&gt;Cherry pick to Boron old Restconf:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/42462/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/42462/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="39391" author="ivan.hrasko@pantheon.tech" created="Fri, 5 Aug 2016 14:14:58 +0000"  >&lt;p&gt;patch for new restconf has been merged to master:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/41833/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/41833/&lt;/a&gt;&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>5909</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=5909]]></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="10332"><![CDATA[Boron-RC0]]></customfieldvalue>

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

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