<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09: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>[MDSAL-234] Cluster singleton service unable to handle closeServiceInstance() being called from instantiateServiceInstance()</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-234</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;While implementing &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1601&quot; title=&quot;Implement agent RPCs for singleton rapid un-registration testing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1601&quot;&gt;&lt;del&gt;CONTROLLER-1601&lt;/del&gt;&lt;/a&gt; we have noticed that singleton service provider is unable to handle this due to the way it&apos;s internal locking is implemented.&lt;/p&gt;

&lt;p&gt;As it stands now if you actually call closeServiceInstance() from InstantiateServiceInstance() or vice versa you will deadlock the singleton thread since it&apos;s waiting for a permit on the semaphore that will never be released.&lt;br/&gt;
Changing the semaphore to a reentrant lock would not help since instead you would run into an infinite recursion from close() -&amp;gt; instantiate() -&amp;gt; close() -&amp;gt; etc..&lt;/p&gt;

&lt;p&gt;Possible solution might be to have an singleThreaded ExecutorService inside SingletonService Provider and to proxy the calls interacting with it through the executor.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27056">MDSAL-234</key>
            <summary>Cluster singleton service unable to handle closeServiceInstance() being called from instantiateServiceInstance()</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="10002">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="tcere">Tomas Cere</reporter>
                        <labels>
                    </labels>
                <created>Mon, 27 Feb 2017 08:43:31 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:19 +0000</updated>
                            <resolved>Tue, 19 Sep 2017 08:20:43 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="54596" author="vzelcamo@cisco.com" created="Fri, 31 Mar 2017 10:45:23 +0000"  >&lt;p&gt;Correct type is improvement of existing code, therefore moving post carbon&lt;/p&gt;</comment>
                            <comment id="54597" author="rovarga" created="Mon, 11 Sep 2017 07:43:55 +0000"  >&lt;p&gt;Fixed as part of &lt;a href=&quot;https://jira.opendaylight.org/browse/MDSAL-275&quot; title=&quot;VerifyException from flapping service singleton registration&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MDSAL-275&quot;&gt;&lt;del&gt;MDSAL-275&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="27097">MDSAL-275</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_10207" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>External References</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>controller_clustering_txt_chasing_the_leader_unregister_candidates_and_validate_criteria</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7855</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=7855]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10305"><![CDATA[Improvement]]></customfieldvalue>

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

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

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