<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:53:27 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-611] Module method close() not invoked on uninstall or stop.</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-611</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;There is a method in the Java code generated from Yang:&lt;/p&gt;

&lt;p&gt;    public abstract java.lang.AutoCloseable createInstance();&lt;/p&gt;

&lt;p&gt;I implement createInstance() to return an instance of AutoClose with a close() method that closes all my socket connections. There is also a log statement in the close() method. Naturally I want to check that the close() method executes. I want to see the log output.&lt;/p&gt;

&lt;p&gt;If I shutdown Equinox then close() is invoked but not if I uninstall or stop the bundle. Note that a shutdown after uninstall or stop does invoke close().&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="25165">CONTROLLER-611</key>
            <summary>Module method close() not invoked on uninstall or stop.</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="10001">Won&apos;t Do</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kjarrad@cisco.com">Ken Jarrad</reporter>
                        <labels>
                    </labels>
                <created>Mon, 7 Jul 2014 15:45:18 +0000</created>
                <updated>Tue, 25 Jul 2023 08:23:59 +0000</updated>
                            <resolved>Wed, 5 Jul 2017 00:55:52 +0000</resolved>
                                                                    <component>config</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="48663" author="abhishk2@cisco.com" created="Wed, 15 Apr 2015 00:44:38 +0000"  >&lt;p&gt;UP&apos;ed the the severity. This blocks a karaf feature redeployment.&lt;/p&gt;

&lt;p&gt;Steps to reproduce:&lt;/p&gt;

&lt;p&gt;1. Create an MD-SAL based feature&lt;br/&gt;
2. Deploy the feature kar file by copying to deploy folder&lt;br/&gt;
3. At karaf console, ensure that the feature got installed&lt;br/&gt;
4. Delete the feature kar file from deploy folder&lt;br/&gt;
5. At karaf console, ensure that the feature got uninstalled&lt;br/&gt;
6. Build a new version of the feature&lt;br/&gt;
7. Copy the new version of feature into the deploy folder&lt;br/&gt;
8. At karaf console, ensure that the feature got installed&lt;br/&gt;
9. Even though karaf says that the feature got installed, Config subsystem would complain while installing.&lt;/p&gt;

&lt;p&gt;In JConsole, if you check the list of modules installed by Config subsystem, your newly installed module will be absent.&lt;/p&gt;

&lt;p&gt;While debugging, following is my observation:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;On feature uninstall, config system gets a notification from OSGI container about bundle uninstall. Config subsystem creates a blank transaction that is supposed to reconfigure existing modules. Config manager, who&apos;s supposed to process this transaction, fails to check if the bundle, where the module its configuring came from, is in ACTIVE state or not. If it reconfigures the modules only from ACTIVE bundles, and destroys/closes the ones not in ACTIVE state, feature/bundle uninstall should work fine.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Even with above fix in my local environment, feature re-install didnt work for me. While feature uninstall went fine, when I tried to install a new version of the feature, it didnt get installed. Karaf shows that my feature got installed but JConsole doesnt show the module in config-subsystem. Also, createInstance() of my module didnt get called. My log messages didnt get printed. Looks like there&apos;s some lingering cache in netconf-connector that thinks this module already exists even though it was uninstalled.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="48664" author="tony.tkacik@gmail.com" created="Wed, 15 Apr 2015 07:35:03 +0000"  >&lt;p&gt;This would require additional design and interactions such as deconfiguring your feature on uninstall (since your configuration was applied) which would probably require behaviour change / API change.&lt;/p&gt;

&lt;p&gt;I am not sure if this is doable in Lithium and or stable/helium&lt;/p&gt;</comment>
                            <comment id="48665" author="tpantelis" created="Wed, 5 Jul 2017 00:55:52 +0000"  >&lt;p&gt;The CSS is being deprecated so not worth addressing. Blueprint provides the desired behavior.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="26773">TSDR-9</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>1322</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=1322]]></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_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10301"><![CDATA[Normal]]></customfieldvalue>

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

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