<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:59:41 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-15] DataStoreJobCoordinator: java.lang.reflect.UndeclaredThrowableException</title>
                <link>https://jira.opendaylight.org/browse/GENIUS-15</link>
                <project id="10126" key="GENIUS">genius</project>
                    <description>&lt;p&gt;2016-08-29 08:14:56,152 | ERROR | nPool-1-worker-2 | DataStoreJobCoordinator          | 313 - org.opendaylight.genius.mdsalutil-api - 0.2.0.SNAPSHOT | Exception when executing jobEntry: JobEntry&lt;/p&gt;
{key=&apos;org.opendaylight.controller.config.yang.config.legacy_entity_ownership_service_provider.LegacyEntityOwnershipServiceProviderModule$1@50468e80&apos;, mainWorker=org.opendaylight.genius.utils.clustering.ClusteringUtils$CheckEntityOwnerTask@19edf62a, rollbackWorker=null, retryCount=0, futures=null}
&lt;p&gt;, exception: &lt;span class=&quot;error&quot;&gt;&amp;#91;org.opendaylight.controller.config.yang.config.legacy_entity_ownership_service_provider.$Proxy52.getOwnershipState(Unknown Source), org.opendaylight.genius.utils.clustering.ClusteringUtils$CheckEntityOwnerTask.call(ClusteringUtils.java:83), org.opendaylight.genius.utils.clustering.ClusteringUtils$CheckEntityOwnerTask.call(ClusteringUtils.java:63), org.opendaylight.genius.datastoreutils.DataStoreJobCoordinator$MainTask.run(DataStoreJobCoordinator.java:248), java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1423), java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289), java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902), java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689), java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644), java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)&amp;#93;&lt;/span&gt;&lt;br/&gt;
java.lang.reflect.UndeclaredThrowableException&lt;br/&gt;
        at org.opendaylight.controller.config.yang.config.legacy_entity_ownership_service_provider.$Proxy52.getOwnershipState(Unknown Source)&lt;br/&gt;
        at org.opendaylight.genius.utils.clustering.ClusteringUtils$CheckEntityOwnerTask.call(ClusteringUtils.java:83)&lt;br/&gt;
        at org.opendaylight.genius.utils.clustering.ClusteringUtils$CheckEntityOwnerTask.call(ClusteringUtils.java:63)&lt;br/&gt;
        at org.opendaylight.genius.datastoreutils.DataStoreJobCoordinator$MainTask.run(DataStoreJobCoordinator.java:248)&lt;br/&gt;
        at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1423)&lt;br/&gt;
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)&lt;br/&gt;
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902)&lt;br/&gt;
        at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689)&lt;br/&gt;
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644)&lt;br/&gt;
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)&lt;br/&gt;
Caused by: java.lang.reflect.InvocationTargetException&lt;br/&gt;
        at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)&lt;br/&gt;
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br/&gt;
        at java.lang.reflect.Method.invoke(Method.java:483)&lt;br/&gt;
        at org.opendaylight.controller.config.yang.config.legacy_entity_ownership_service_provider.LegacyEntityOwnershipServiceProviderModule$1.handleInvocation(LegacyEntityOwnershipServiceProviderModule.java:53)&lt;br/&gt;
        at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87)&lt;br/&gt;
        ... 10 more&lt;br/&gt;
Caused by: org.osgi.service.blueprint.container.ServiceUnavailableException: The Blueprint container is being or has been destroyed: (objectClass=org.opendaylight.mdsal.eos.dom.api.DOMEntityOwnershipService)&lt;br/&gt;
        at org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:241)&lt;br/&gt;
        at org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:56)&lt;br/&gt;
        at org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:306)&lt;br/&gt;
        at Proxy590a948f_3def_402c_973a_9ad6f6115b8e.getOwnershipState(Unknown Source)&lt;br/&gt;
        at org.opendaylight.controller.md.sal.dom.clustering.impl.LegacyEntityOwnershipServiceAdapter.getOwnershipState(LegacyEntityOwnershipServiceAdapter.java:60)&lt;br/&gt;
        at Proxy7b737b0a_4c17_4053_bb8d_a311809db80d.getOwnershipState(Unknown Source)&lt;br/&gt;
        ... 15 more&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="19796">GENIUS-15</key>
            <summary>DataStoreJobCoordinator: java.lang.reflect.UndeclaredThrowableException</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="vorburger">Michael Vorburger</assignee>
                                    <reporter username="shague">Sam Hague</reporter>
                        <labels>
                    </labels>
                <created>Mon, 29 Aug 2016 12:24:30 +0000</created>
                <updated>Thu, 6 Apr 2017 15:34:18 +0000</updated>
                            <resolved>Thu, 6 Apr 2017 15:34:18 +0000</resolved>
                                    <version>(unspecified)</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="35811" author="shague@redhat.com" created="Mon, 29 Aug 2016 12:24:30 +0000"  >&lt;p&gt;Attachment karaf.tar.gz has been added with description: karaf.log&lt;/p&gt;</comment>
                            <comment id="35803" author="faseela.k@ericsson.com" created="Mon, 29 Aug 2016 16:32:18 +0000"  >&lt;p&gt;Please specify the steps to reproduce&lt;/p&gt;</comment>
                            <comment id="35804" author="shague@redhat.com" created="Tue, 30 Aug 2016 14:04:52 +0000"  >&lt;p&gt;This is captured when using the NetvirtIT. The test simply creates a neutron network and two vm&apos;s on the network. Then issues a ping from one vm to the other. To use the IT you need dockr and docker-compose installed on the host. Build the netvirt code and then run the command below. ovsdb.controller.address is the address show for the docker0 interface if you issues ip addr on the host.&lt;/p&gt;

&lt;p&gt;cd netvirt/vpnservice&lt;br/&gt;
mvn -nsu -f it/impl/pom.xml verify -Pintegrationtest -Dovsdb.controller.address=172.17.0.1 -Dit.test=NetvirtIT#testNeutronNet&lt;/p&gt;</comment>
                            <comment id="35805" author="vorburger" created="Thu, 16 Mar 2017 10:26:47 +0000"  >&lt;p&gt;Done a quick first analysis of this... it&apos;s some (interesting!) mix up of checked and unchecked exceptions related to not 1 but 2 instances of java.lang.reflect.Proxy, one by Aries BP and one from org.opendaylight.controller.config.yang.config.legacy_entity_ownership_service_provider.LegacyEntityOwnershipServiceProviderModule.createInstance() ...&lt;/p&gt;

&lt;p&gt;... not sure yet what the right fix is.  Also the LegacyEntityOwnershipServiceProviderModule is from some pre-BP pure CSS times, should ideally be removed, but let&apos;s try to fix it as is first.  The actual bug and thus fix may be in Controller, not Genius (I&apos;ll move the Bugzilla Product if I&apos;m sure).&lt;/p&gt;

&lt;p&gt;&amp;gt; Caused by: org.osgi.service.blueprint.container.ServiceUnavailableException: &lt;br/&gt;
&amp;gt; The Blueprint container is being or has been destroyed:&lt;/p&gt;

&lt;p&gt;Sam, have you seen this one &quot;in the wild&quot; (during real operations) or only during NetvirtIT ? I think this MAY (I&apos;m not sure) be one of our (too many... yes) problems happening (only) during shutdown / feature un-install?  It certainly would be good to fix it either way, but the priority would be a little different.&lt;/p&gt;</comment>
                            <comment id="35806" author="vorburger" created="Thu, 16 Mar 2017 13:28:13 +0000"  >&lt;p&gt;&amp;gt; one of our (too many... yes) problems happening (only)&lt;br/&gt;
&amp;gt; during shutdown / feature un-install&lt;/p&gt;

&lt;p&gt;actually, even if I &quot;fix&quot; this (the Exception above), then another one will ust appear.. the real issue here probably is that a background thread in DataStoreJobCoordinator is still trying to access EntityOwnershipService when that bundles&apos; &quot;Blueprint container is being or has been destroyed&quot; - Karaf is already shutting down.&lt;/p&gt;

&lt;p&gt;The real fix here then is EITHER to stop DataStoreJobCoordinator correctly, which I&apos;ve proposed in &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/52976/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/52976/&lt;/a&gt; (that&apos;s the right generic solution IMHO if whatever that background job does actually isn&apos;t really important), OR for maybe for NetvirtIT to wait for the DataStoreJobCoordinator to be done (that&apos;s the right local fix if the NetvirtIT does care about the outcome of that background job - but then it really should be extended with an assert of something that happens in that job?).&lt;/p&gt;</comment>
                            <comment id="35807" author="vorburger" created="Thu, 16 Mar 2017 15:48:34 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/53412/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/53412/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="35808" author="faseela.k@ericsson.com" created="Fri, 17 Mar 2017 18:34:30 +0000"  >&lt;p&gt;will this resolve the problem?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/53412/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/53412/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="35809" author="vorburger" created="Mon, 20 Mar 2017 10:03:02 +0000"  >&lt;p&gt;&amp;gt; will c/53412 resolve the problem?&lt;/p&gt;

&lt;p&gt;with this now merged, I expect another exception showing the actual root cause will probably appear now for this (not tested; perhaps Sam or Faseela you could copy/paste the new exception if you see it happen?).&lt;/p&gt;

&lt;p&gt;The real issue here is that a background thread in DataStoreJobCoordinator is still trying to access EntityOwnershipService when that bundles&apos; &quot;Blueprint container is being or has been destroyed&quot; - Karaf is already shutting down.&lt;/p&gt;

&lt;p&gt;The real fix here then is EITHER to stop DataStoreJobCoordinator correctly, which I&apos;ve proposed in &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/52976/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/52976/&lt;/a&gt; (that&apos;s the right generic solution IMHO if whatever that background job does actually isn&apos;t really important), OR for maybe for NetvirtIT to wait for the DataStoreJobCoordinator to be done (that&apos;s the right local fix if the NetvirtIT does care about the outcome of that background job - but then it really should be extended with an assert of something that happens in that job?).&lt;/p&gt;</comment>
                            <comment id="35810" author="vorburger" created="Thu, 6 Apr 2017 15:34:18 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/52976/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/52976/&lt;/a&gt; is now also merged, so the error above won&apos;t occur anymore like that.  &amp;#8211;  It&apos;s possible that another exception will probably appear now at the end of the NetvirtIT (not tested), but it will look very different, so let&apos;s track that in a new bug to be opened when someone hits it.&lt;/p&gt;

&lt;p&gt;PS: Maybe NetvirtIT would have to wait for the DataStoreJobCoordinator to be done (that&apos;s the right local fix if the NetvirtIT does care about the outcome of that background job - but then it really should be extended with an assert of something that happens in that job?).&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12127" name="karaf.tar.gz" size="119735" author="shague" created="Mon, 29 Aug 2016 12:24:30 +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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6564</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=6564]]></customfieldvalue>

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

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