<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:23:11 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>[NETVIRT-1077] get rid of WriteTransactions which will never be submitted </title>
                <link>https://jira.opendaylight.org/browse/NETVIRT-1077</link>
                <project id="10144" key="NETVIRT">netvirt</project>
                    <description>&lt;p&gt;In NeutronvpnManager, NeutronvpnUtil, in functions, that perform WriteOnlyTransaction to ConfigDS you can often meet this references check for WriteTransaction object:&lt;/p&gt;

&lt;p&gt;method UpdateSomething(...., Something something, WriteTransaction wrtConfigTxn) {&lt;/p&gt;

&lt;p&gt;if (wrtConfigTxn == null) &lt;/p&gt;
{
&#160;&#160;&#160;&#160; wrtConfigTxn = dataBroker.newWriteOnlyTransaction();
 }

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

&lt;p&gt;and then there is a transaction call:&lt;/p&gt;

&lt;p&gt;LOG.info(&quot;Updating something&quot;, something);&lt;br/&gt;
 wrtConfigTxn.put(LogicalDatastoreType.CONFIGURATION, something, something.build());&lt;/p&gt;

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

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;So if wrtConfigTxn was null, newly created WriteOnlyTransaction will never be submitted to ConfigDS, because there is no any call wrtConfigTxn.submit().get().&lt;/p&gt;

&lt;p&gt;So&#160; in such methods bodies, we always sure, that existed wrtConfigTxn is passed by arguments, it is not null, except the moment, when we perform if (wrtConfigTxn == null). &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Fortunately, some methods are really the case, we always call them with already existed wrtConfigTxn, so this check will be never executed.&lt;/p&gt;

&lt;p&gt;Need to sanitize the code of neutron-vpn and vpnmanager packages, add&#160; wrtConfigTxn.submit, when we create new transaction object inside a method.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="29151">NETVIRT-1077</key>
            <summary>get rid of WriteTransactions which will never be submitted </summary>
                <type id="10001" iconUrl="https://jira.opendaylight.org/images/icons/issuetypes/story.svg">Story</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="10004" iconUrl="https://jira.opendaylight.org/images/icons/status_generic.gif" description="">Verified</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="valentina.krasnobaeva">Valentina Krasnobaeva</assignee>
                                    <reporter username="valentina.krasnobaeva">Valentina Krasnobaeva</reporter>
                        <labels>
                    </labels>
                <created>Fri, 2 Feb 2018 13:11:10 +0000</created>
                <updated>Mon, 25 Nov 2019 07:37:49 +0000</updated>
                            <resolved>Mon, 25 Nov 2019 07:37:41 +0000</resolved>
                                                    <fixVersion>Magnesium</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="61086" author="pguibert6wind" created="Fri, 16 Feb 2018 07:40:18 +0000"  >&lt;p&gt;lowering the priority of this ticket, since I think this is not the default workflow ( I mean that passed writetransaction is already provided, and then returned back).&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="61088" author="valentina.krasnobaeva" created="Fri, 16 Feb 2018 08:53:48 +0000"  >&lt;p&gt;Philippe, even in a subject of this issue, I&apos;ve mentioned, that the problem is that&lt;/p&gt;
&lt;h1&gt;&lt;a name=&quot;WriteTransactions%C2%A0willneverbesubmitted%21&quot;&gt;&lt;/a&gt;WriteTransactions&#160; will never be submitted ! &lt;/h1&gt;

&lt;p&gt;It means, that changes will never be written in DS !&lt;/p&gt;</comment>
                            <comment id="67430" author="abhinav.gupta" created="Mon, 25 Nov 2019 07:37:26 +0000"  >&lt;p&gt;bug present and fixed in latest release&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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i039zr:</customfieldvalue>

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