<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:59:56 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>[GENIUS-114] Genius karaf shutdock deadlocks</title>
                <link>https://jira.opendaylight.org/browse/GENIUS-114</link>
                <project id="10126" key="GENIUS">genius</project>
                    <description>&lt;p&gt;We currently cannot cleanly shutdown Karaf with genius install anymore, see:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;cd genius/karaf
git checkout master
git pulll
mvn clean &lt;span class=&quot;code-keyword&quot;&gt;package&lt;/span&gt;
target/assembly/bin/karaf
feature:install odl-genius
shutdown&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This &quot;hangs&quot; - until you Ctrl-C it.&lt;/p&gt;

&lt;p&gt;Attached is the jstack from this, showing a few non-daemon threads I suspect are responsible for this.&lt;/p&gt;

&lt;p&gt;I&apos;ll open separate new linked issues for problems in projects outside of genius likely causing this.&lt;/p&gt;</description>
                <environment></environment>
        <key id="29241">GENIUS-114</key>
            <summary>Genius karaf shutdock deadlocks</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.opendaylight.org/images/icons/priorities/blocker.svg">Highest</priority>
                        <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="10003">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="vorburger">Michael Vorburger</reporter>
                        <labels>
                    </labels>
                <created>Mon, 19 Feb 2018 13:53:26 +0000</created>
                <updated>Mon, 19 Feb 2018 14:54:15 +0000</updated>
                            <resolved>Mon, 19 Feb 2018 14:54:15 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="61106" author="vorburger" created="Mon, 19 Feb 2018 14:12:28 +0000"  >&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;$ cat ~/GENIUS-114-jstack.txt | grep os_prio= | grep -v daemon 

&quot;Framework stop&quot; #329 prio=5 os_prio=0 tid=0x00007fbd640073a0 nid=0x3e6e waiting for monitor entry [0x00007fbd47c9b000]
&quot;nioEventLoopGroup-4-1&quot; #291 prio=10 os_prio=0 tid=0x00007fbdbc146f60 nid=0x3d81 runnable [0x00007fbd45080000]
&quot;Thread-39&quot; #283 prio=5 os_prio=0 tid=0x00007fbd6c028780 nid=0x3d79 in Object.wait() [0x00007fbd45884000]
&quot;transaction-invoker-impl-0&quot; #280 prio=5 os_prio=0 tid=0x00007fbd843ceb00 nid=0x3d76 waiting on condition [0x00007fbd45d87000]
&quot;pool-35-thread-2&quot; #246 prio=5 os_prio=0 tid=0x00007fbd80081940 nid=0x3d53 waiting on condition [0x00007fbd47e9e000]
&quot;pool-35-thread-1&quot; #245 prio=5 os_prio=0 tid=0x00007fbd80080710 nid=0x3d52 waiting on condition [0x00007fbd47d9d000]
&quot;config-blank-txn-0&quot; #162 prio=5 os_prio=0 tid=0x00007fbdd0063770 nid=0x3d01 waiting on condition [0x00007fbd4ce48000]
&quot;config-bundle-tracker-0&quot; #157 prio=5 os_prio=0 tid=0x00007fbd54b5a350 nid=0x3cfc waiting on condition [0x00007fbd4e170000]
&quot;RMI Reaper&quot; #77 prio=5 os_prio=0 tid=0x00007fbd781be090 nid=0x3c90 in Object.wait() [0x00007fbd4ebec000]
&quot;features-1-thread-1&quot; #28 prio=5 os_prio=0 tid=0x00007fbd5813b4f0 nid=0x3c61 waiting on condition [0x00007fbd8a50b000]
&quot;Karaf Lock Monitor Thread&quot; #17 prio=5 os_prio=0 tid=0x00007fbdec5d4140 nid=0x3c55 waiting on condition [0x00007fbd8bb43000]
&quot;Active Thread: Equinox Container: 5e136c7a-ea62-4200-96f7-f3a0acddaff9&quot; #13 prio=5 os_prio=0 tid=0x00007fbdec48a880 nid=0x3c52 waiting on condition [0x00007fbdb010d000]
&quot;main&quot; #1 prio=5 os_prio=0 tid=0x00007fbdec00a8d0 nid=0x3c40 in Object.wait() [0x00007fbdf343e000]
&quot;VM Thread&quot; os_prio=0 tid=0x00007fbdec084e00 nid=0x3c45 runnable 
&quot;GC task thread#0 (ParallelGC)&quot; os_prio=0 tid=0x00007fbdec01fe80 nid=0x3c41 runnable 
&quot;GC task thread#1 (ParallelGC)&quot; os_prio=0 tid=0x00007fbdec0212f0 nid=0x3c42 runnable 
&quot;GC task thread#2 (ParallelGC)&quot; os_prio=0 tid=0x00007fbdec022760 nid=0x3c43 runnable 
&quot;GC task thread#3 (ParallelGC)&quot; os_prio=0 tid=0x00007fbdec023bd0 nid=0x3c44 runnable 
&quot;VM Periodic Task Thread&quot; os_prio=0 tid=0x00007fbdec2b0a40 nid=0x3c4e waiting on condition&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;ve started creating issues &lt;a href=&quot;https://jira.opendaylight.org/browse/OVSDB-454&quot; title=&quot;OvsdbConnectionService background thread (from netty?) should be daemon (and have a proper thread name)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;OVSDB-454&quot;&gt;&lt;del&gt;OPNFLWPLUG-979&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.opendaylight.org/browse/OVSDB-452&quot; title=&quot;TransactionInvokerImpl should be daemon&quot; class=&quot;issue-link&quot; data-issue-key=&quot;OVSDB-452&quot;&gt;&lt;del&gt;OVSDB-452&lt;/del&gt;&lt;/a&gt; (more needed), but...&lt;/p&gt;

&lt;p&gt;... actually I&apos;m not so sure that these non-daemon threads are what&apos;s causing this - can others chime in here?&lt;/p&gt;

&lt;p&gt;The daemon would block shutdown AFTER the main thread returns, right? That is stuck however:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;&quot;main&quot; #1 prio=5 os_prio=0 tid=0x00007fbdec00a8d0 nid=0x3c40 in Object.wait() [0x00007fbdf343e000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on &amp;lt;0x00000000807aadf0&amp;gt; (a java.util.concurrent.atomic.AtomicReference)
	at org.eclipse.osgi.container.SystemModule.waitForStop(SystemModule.java:168)
	- locked &amp;lt;0x00000000807aadf0&amp;gt; (a java.util.concurrent.atomic.AtomicReference)
	at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.waitForStop(EquinoxBundle.java:250)
	at org.eclipse.osgi.launch.Equinox.waitForStop(Equinox.java:181)
	at org.apache.karaf.main.Main.awaitShutdown(Main.java:631)
	at org.apache.karaf.main.Main.main(Main.java:189)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I do not understand what this is waiting for without digging much deeper - which I don&apos;t currently have time for.&lt;/p&gt;</comment>
                            <comment id="61109" author="tpantelis" created="Mon, 19 Feb 2018 14:41:58 +0000"  >&lt;p&gt;The stuck thread is in an Object.wait in the waitForStop. I see no other threads that are really doing anything so I suspect whatever code was supposed to notify the Object didn&apos;t for some reason, possibly due to an exception/error path that elided the notify. I think we&apos;d need to see the karaf log that hopefully shows a smoking gun exception.&lt;/p&gt;</comment>
                            <comment id="61110" author="vorburger" created="Mon, 19 Feb 2018 14:54:01 +0000"  >&lt;p&gt;&amp;gt; I think we&apos;d need to see the karaf log that hopefully shows a smoking gun exception.&lt;/p&gt;

&lt;p&gt;Unforatuntely I wiped it, but thought it was easy to reproduce.. and now cannot anymore - it works?!&lt;/p&gt;

&lt;p&gt;May be a timing issue... I do hit (other.. weird) issues if I do &lt;tt&gt;shutdown&lt;/tt&gt; too quickly, before &lt;tt&gt;diag&lt;/tt&gt;&#160;return empty.&#160;&lt;/p&gt;

&lt;p&gt;Closing this as CANNOT REPRO - if others hit this again, please open with new details.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="29134">ODLPARENT-140</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="29243">OVSDB-452</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="29242">OVSDB-454</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="14414" name="GENIUS-114-jstack.txt" size="46153" author="vorburger" created="Mon, 19 Feb 2018 13:53:51 +0000"/>
                    </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|i03ajr:</customfieldvalue>

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