Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-111717

OrganizationLocalServiceWhenSearchingOrganizationsTreeTest intermittently failing due to assets missing from index

Description

    For example, the tests would fail due to an assertion error with verbiage like "but was:<[[]]>", which indicates the asset could not be found within the index.

    The following tests intermittently failing because of this:

    Example stacktrace:

     [exec]     org.junit.ComparisonFailure: {organizationsTree=[{mvccVersion=0, uuid=ed1b4338-90fc-7cff-ad2c-74aedc096526, externalReferenceCode=, organizationId=37628, companyId=20097, userId=20127, userName=Test Test, createDate=Fri Apr 10 11:47:39 GMT 2020, modifiedDate=Fri Apr 10 11:47:39 GMT 2020, parentOrganizationId=37624, treePath=/37624/37628/, name=CtMDIPlz, type=organization, recursable=true, regionId=0, countryId=0, statusId=12017, comments=, logoId=0}]}->[] expected:<[[{comments=, recursable=true, type=organization, userName=Test Test, userId=20127, uuid=ed1b4338-90fc-7cff-ad2c-74aedc096526, countryId=0, parentOrganizationId=37624, externalReferenceCode=, organizationId=37628, companyId=20097, statusId=12017, regionId=0, name=CtMDIPlz, mvccVersion=0, logoId=0, treePath=/37624/37628/}, {comments=, recursable=true, type=organization, userName=Test Test, userId=20127, uuid=beb7b298-f3b1-690c-45f2-3b0eaa4c9742, countryId=0, parentOrganizationId=37628, externalReferenceCode=, organizationId=37632, companyId=20097, statusId=12017, regionId=0, name=FmuQ0bg2, mvccVersion=0, logoId=0, treePath=/37624/37628/37632/}]]> but was:<[[]]>
         [exec]     	at org.junit.Assert.assertEquals(Assert.java:115)
         [exec]     	at com.liferay.portal.search.test.util.AssertUtils.assertEquals(AssertUtils.java:53)
         [exec]     	at com.liferay.organizations.service.test.OrganizationLocalServiceWhenSearchingOrganizationsTreeTest._assertSearch(OrganizationLocalServiceWhenSearchingOrganizationsTreeTest.java:244)
         [exec]     	at com.liferay.organizations.service.test.OrganizationLocalServiceWhenSearchingOrganizationsTreeTest.testShouldIncludeSuborganizationsAsAdminUser(OrganizationLocalServiceWhenSearchingOrganizationsTreeTest.java:122)
         [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         [exec]     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec]     	at java.lang.reflect.Method.invoke(Method.java:498)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
         [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
         [exec]     	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
         [exec]     	at java.lang.Thread.run(Thread.java:745)
    

    Attachments

      Issue Links

        Activity

          People

            patricia.perez Patricia Perez
            calvin.vo Calvin Vo
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 32 weeks, 1 day ago

              Packages

                Version Package
                7.3.10 DXP GA1
                Master