<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:33:09 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>[OPNFLWPLUG-695] OFP - Reuse Threads using ThreadPool in ConnectionManagerImpl.java</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-695</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;Stop instantiating new thread pool with one thread for handshake after switch connected. Rather prepare threadpool while starting OFP and reuse threads.&lt;/p&gt;


&lt;p&gt;    public void onSwitchConnected(final ConnectionAdapter connectionAdapter) {&lt;br/&gt;
        ...&lt;br/&gt;
        final ThreadPoolLoggingExecutor handshakePool = createHandshakePool(&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27963">OPNFLWPLUG-695</key>
            <summary>OFP - Reuse Threads using ThreadPool in ConnectionManagerImpl.java</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="jozef.slezak@pantheon.sk">Jozef Slez&#225;k</assignee>
                                    <reporter username="jozef.slezak@pantheon.sk">Jozef Slez&#225;k</reporter>
                        <labels>
                    </labels>
                <created>Thu, 19 May 2016 13:55:35 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:49 +0000</updated>
                            <resolved>Thu, 23 Jun 2016 07:12:27 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="57897" author="tomas.slusny@pantheon.tech" created="Tue, 24 May 2016 08:04:40 +0000"  >&lt;p&gt;GERRIT: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/39305/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/39305/1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="57898" author="yasuda" created="Wed, 22 Jun 2016 09:12:25 +0000"  >&lt;p&gt;(In reply to Tomas Slusny from comment #1)&lt;br/&gt;
&amp;gt; GERRIT: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/39305/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/39305/1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After this patch is merged, Li plugin dumps the following stack trace to karaf console every time a new OF session is accepted.&lt;/p&gt;

&lt;p&gt;Exception in thread &quot;Thread-221&quot; java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@6d677829 rejected from org.opendaylight.openflowplugin.openflow.md.core.ThreadPoolLoggingExecutor@28041e93&lt;span class=&quot;error&quot;&gt;&amp;#91;Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047)&lt;br/&gt;
        at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823)&lt;br/&gt;
        at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369)&lt;br/&gt;
        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)&lt;br/&gt;
        at org.opendaylight.openflowplugin.impl.connection.listener.ConnectionReadyListenerImpl.onConnectionReady(ConnectionReadyListenerImpl.java:51)&lt;br/&gt;
        at org.opendaylight.openflowjava.protocol.impl.core.connection.ConnectionAdapterImpl$1.run(ConnectionAdapterImpl.java:185)&lt;br/&gt;
        at java.lang.Thread.run(Thread.java:745)&lt;/p&gt;

&lt;p&gt;A new thread pool seems to be shared with all OF sessions. So HandshakeContextImpl should never shut down the thread pool passed to constructor.&lt;/p&gt;

&lt;p&gt;This patch will fix this bug.&lt;/p&gt;

&lt;p&gt;  &lt;a href=&quot;https://git.opendaylight.org/gerrit/40662&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/40662&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>5925</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=5925]]></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="10339"><![CDATA[Boron-M4]]></customfieldvalue>

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

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