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

DLFileEntryAttachmentSearchTest#testSearchIncludeAttachment is flaky

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: DM
    • Labels:
      None
    • Fix Priority:
      5
    • Last Working Version:

      Description

      DLFileEntryAttachmentSearchTest#testSearchIncludeAttachment is failing inconsistently. See history here.

      [exec] com.liferay.document.library.search.test.DLFileEntryAttachmentSearchTest > testSearchIncludeAttachment STARTED
           [exec] 
           [exec] com.liferay.document.library.search.test.DLFileEntryAttachmentSearchTest > testSearchIncludeAttachment FAILED
           [exec]     java.lang.AssertionError: expected:<1> but was:<2>
           [exec]         at org.junit.Assert.fail(Assert.java:88)
           [exec]         at org.junit.Assert.failNotEquals(Assert.java:834)
           [exec]         at org.junit.Assert.assertEquals(Assert.java:645)
           [exec]         at org.junit.Assert.assertEquals(Assert.java:631)
           [exec]         at com.liferay.document.library.search.test.DLFileEntryAttachmentSearchTest.testSearchIncludeAttachment(DLFileEntryAttachmentSearchTest.java:86)
           [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:218)
           [exec]         at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [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:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [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)
           [exec] 
      

      Reproduced on:
      Portal Master c0c13433600398fed8768f539aa8212978f7409c
      IBM DB2 11.1 + JDK8

      Test passed on the same environment on Master f4673a1ef3c55c5350a52f27361cf4f055db9c0e

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                austin.chiang Austin Chiang
                Reporter:
                austin.chiang Austin Chiang
                Participants of an Issue:
                Recent user:
                Austin Chiang
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  22 weeks, 3 days ago

                  Packages

                  Version Package