<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:55: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>[CONTROLLER-1592] DistributedEntityOwnershipIntegrationTest.testFunctionalityWithThreeNodes is unstable (flaky) test</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1592</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1578&quot; title=&quot;Multi-threaded AbstractDataBrokerTest/s fail with TransactionCommitFailedException Caused by: java.lang.IllegalStateException: Store tree ... and candidate base ... differ.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1578&quot;&gt;&lt;del&gt;CONTROLLER-1578&lt;/del&gt;&lt;/a&gt;&apos;s &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/51486/&amp;#39;s&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/51486/&apos;s&lt;/a&gt; &lt;a href=&quot;https://jenkins.opendaylight.org/releng/job/controller-verify-carbon-mvn33-openjdk8/1791/console&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/releng/job/controller-verify-carbon-mvn33-openjdk8/1791/console&lt;/a&gt; failed with:&lt;/p&gt;

&lt;p&gt;00:36:54 DistributedEntityOwnershipIntegrationTest.testFunctionalityWithThreeNodes:201 &lt;br/&gt;
00:36:54 follower2MockListener.ownershipChanged(&lt;br/&gt;
00:36:54     &amp;lt;DOMEntityOwnershipChange [entity=DOMEntity [type=entityType1, id=/(urn:opendaylight:params:xml:ns:yang:mdsal:core:general-entity?revision=2015-09-30)entity/entity[&lt;/p&gt;
{(urn:opendaylight:params:xml:ns:yang:mdsal:core:general-entity?revision=2015-09-30)name=entity2}
&lt;p&gt;]], state=REMOTE_OWNERSHIP_CHANGED &lt;span class=&quot;error&quot;&gt;&amp;#91;wasOwner=false, isOwner=false, hasOwner=true&amp;#93;&lt;/span&gt;, inJeopardy=false]&amp;gt;&lt;/p&gt;

&lt;p&gt;00:34:05 Wanted 1 time:&lt;br/&gt;
00:34:05 -&amp;gt; at org.opendaylight.controller.cluster.datastore.entityownership.DistributedEntityOwnershipIntegrationTest.testFunctionalityWithThreeNodes(DistributedEntityOwnershipIntegrationTest.java:201)&lt;br/&gt;
00:34:05 But was 2 times. Undesired invocation:&lt;br/&gt;
00:34:05 -&amp;gt; at org.opendaylight.controller.cluster.datastore.entityownership.EntityOwnershipListenerActor.onEntityOwnershipChanged(EntityOwnershipListenerActor.java:44)&lt;/p&gt;

&lt;p&gt;I highly doubt that the change made for &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-1578&quot; title=&quot;Multi-threaded AbstractDataBrokerTest/s fail with TransactionCommitFailedException Caused by: java.lang.IllegalStateException: Store tree ... and candidate base ... differ.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-1578&quot;&gt;&lt;del&gt;CONTROLLER-1578&lt;/del&gt;&lt;/a&gt; in c/51486 can cause this, as e.g. the DataBrokerTestCustomizer and the AbstractDataBrokerTest do not appear to be used at all by this DistributedEntityOwnershipIntegrationTest.&lt;/p&gt;

&lt;p&gt;I tried to have a look locally, and saw it fail once on the branch of c/51486, and then on relaunch locally pass again... and couldn&apos;t get it to fail again.  Using my RunUntilFailureRule from infrautils, I ran it about 27 times on both master and the branch of c/51486, and could never get it to fail again locally.  So it appears to be a rare race condition or something (&quot;heisenbug&quot; ? &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; and we should consider DistributedEntityOwnershipIntegrationTest.testFunctionalityWithThreeNodes to be an occasionally unstable (flaky) test...&lt;/p&gt;

&lt;p&gt;No action for the moment, but if we see it again, I can @Ignore it, or someone else could see if they can fix it?&lt;/p&gt;

&lt;p&gt;_____&lt;br/&gt;
Here&apos;s how to use my RunUntilFailureRule from infrautils:&lt;/p&gt;

&lt;p&gt;    &amp;lt;dependency&amp;gt;&lt;br/&gt;
      &amp;lt;groupId&amp;gt;org.opendaylight.infrautils&amp;lt;/groupId&amp;gt;&lt;br/&gt;
      &amp;lt;artifactId&amp;gt;infrautils-testutils&amp;lt;/artifactId&amp;gt;&lt;br/&gt;
      &amp;lt;version&amp;gt;1.1.0-SNAPSHOT&amp;lt;/version&amp;gt;&lt;br/&gt;
      &amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;&lt;br/&gt;
    &amp;lt;/dependency&amp;gt;&lt;/p&gt;

&lt;p&gt;public class DistributedEntityOwnershipIntegrationTest {&lt;/p&gt;

&lt;p&gt;    public static @ClassRule RunUntilFailureClassRule classRepeater = new RunUntilFailureClassRule();&lt;br/&gt;
    public @Rule RunUntilFailureRule repeater = new RunUntilFailureRule(classRepeater);&lt;/p&gt;

&lt;p&gt;    ....&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26146">CONTROLLER-1592</key>
            <summary>DistributedEntityOwnershipIntegrationTest.testFunctionalityWithThreeNodes is unstable (flaky) test</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="tpantelis">Tom Pantelis</assignee>
                                    <reporter username="vorburger">Michael Vorburger</reporter>
                        <labels>
                    </labels>
                <created>Tue, 7 Feb 2017 01:31:28 +0000</created>
                <updated>Tue, 25 Jul 2023 08:24:21 +0000</updated>
                            <resolved>Mon, 20 Feb 2017 15:45:46 +0000</resolved>
                                                                    <component>clustering</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="51742" author="tcere" created="Wed, 8 Feb 2017 13:38:14 +0000"  >&lt;p&gt;Encountered it in other patches aswell but i wasn&apos;t able to reproduce it locally either. Here for example: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/50622/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/50622/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="51743" author="tpantelis" created="Thu, 16 Feb 2017 09:57:15 +0000"  >&lt;p&gt;I was able to reproduce the failure after 36 runs. There&apos;s a timing issue with the test but the failure also revealed that EntityOwnershipListenerSupport needs to be thread-safe, i.e. access to the listenerActorMap and entityTypeListenerMap needs to be synchronized. Not sure how this slipped thru the cracks before...&lt;/p&gt;

&lt;p&gt;I pushed &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/51941&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/51941&lt;/a&gt;. After the changes it ran successfully 100 times. &lt;/p&gt;

&lt;p&gt;BTW - I have a CLI script that runs &quot;mvn test ...&quot; continuously until failure, similar to RunUntilFailureRule, but it&apos;s nice b/c you don&apos;t have to temporarily change code.&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>7746</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=7746]]></customfieldvalue>

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

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