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

Intermittent failures in portal-search-test tests due to missing index

    Description

    Incidences:

    Date Test Name Location Full Console
    2/26/2020 SearchPaginationTest  Acceptance Upstream 02262020-1
    Console Log Snippet
    [exec] com.liferay.portal.search.indexer.post.processor.test.IndexerPostProcessorTest > testNeverRegister FAILED
         [exec] org.junit.ComparisonFailure: {"from":0,"size":10000,"query":{"bool":{"must":[{"bool":{"must":[{"bool":{"should":[{"bool":{"must":[{"match":{"comments":{"query":"post"}}}],"should":[{"match_phrase":{"comments":{"query":"post","slop":50}}},{"match_phrase":{"comments":{"query":"post","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content":{"query":"post"}}}],"should":[{"match_phrase":{"content":{"query":"post","slop":50}}},{"match_phrase":{"content":{"query":"post","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description":{"query":"post"}}}],"should":[{"match_phrase":{"description":{"query":"post","slop":50}}},{"match_phrase":{"description":{"query":"post","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"properties":{"wildcard":"*post*"}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title":{"query":"post"}}},{"match_phrase_prefix":{"title":{"query":"post"}}}]}}],"should":[{"match_phrase":{"title":{"query":"post","boost":2.0}}}]}},{"bool":{"must":[{"match":{"url":{"query":"post"}}}],"should":[{"match_phrase":{"url":{"query":"post","slop":50}}},{"match_phrase":{"url":{"query":"post","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"userName":{"wildcard":"*post*"}}}]}},{"bool":{"must":[{"match":{"assetCategoryTitles_en_US":{"query":"post"}}}],"should":[{"match_phrase":{"assetCategoryTitles_en_US":{"query":"post","slop":50}}},{"match_phrase":{"assetCategoryTitles_en_US":{"query":"post","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"assetTagNames_en_US":{"query":"post"}}},{"match_phrase_prefix":{"assetTagNames_en_US":{"query":"post"}}}]}}],"should":[{"match_phrase":{"assetTagNames_en_US":{"query":"post","boost":2.0}}}]}},{"bool":{"must":[{"match":{"city":{"query":"post"}}}],"should":[{"match_phrase":{"city":{"query":"post","slop":50}}},{"match_phrase":{"city":{"query":"post","boost":2.0}}}]}},{"bool":{"must":[{"match":{"country":{"query":"post"}}}],"should":[{"match_phrase":{"country":{"query":"post","slop":50}}},{"match_phrase":{"country":{"query":"post","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"emailAddress":{"wildcard":"*post*"}}}]}},{"bool":{"must":[{"match":{"firstName":{"query":"post"}}}],"should":[{"match_phrase":{"firstName":{"query":"post","slop":50}}},{"match_phrase":{"firstName":{"query":"post","boost":2.0}}}]}},{"bool":{"must":[{"match":{"fullName":{"query":"post"}}}],"should":[{"match_phrase":{"fullName":{"query":"post","slop":50}}},{"match_phrase":{"fullName":{"query":"post","boost":2.0}}}]}},{"bool":{"must":[{"match":{"jobTitle":{"query":"post"}}}],"should":[{"match_phrase":{"jobTitle":{"query":"post","slop":50}}},{"match_phrase":{"jobTitle":{"query":"post","boost":2.0}}}]}},{"bool":{"must":[{"match":{"lastName":{"query":"post"}}}],"should":[{"match_phrase":{"lastName":{"query":"post","slop":50}}},{"match_phrase":{"lastName":{"query":"post","boost":2.0}}}]}},{"bool":{"must":[{"match":{"middleName":{"query":"post"}}}],"should":[{"match_phrase":{"middleName":{"query":"post","slop":50}}},{"match_phrase":{"middleName":{"query":"post","boost":2.0}}}]}},{"bool":{"must":[{"match":{"region":{"query":"post"}}}],"should":[{"match_phrase":{"region":{"query":"post","slop":50}}},{"match_phrase":{"region":{"query":"post","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"screenName":{"wildcard":"*post*"}}}]}},{"bool":{"must":[{"match":{"street":{"query":"post"}}}],"should":[{"match_phrase":{"street":{"query":"post","slop":50}}},{"match_phrase":{"street":{"query":"post","boost":2.0}}}]}},{"bool":{"must":[{"match":{"zip":{"query":"post"}}}],"should":[{"match_phrase":{"zip":{"query":"post","slop":50}}},{"match_phrase":{"zip":{"query":"post","boost":2.0}}}]}}]}}]}}],"filter":[{"bool":{"must":[{"bool":{"should":[{"bool":{"must":[{"term":{"entryClassName":{"value":"com.liferay.portal.kernel.model.User"}}}],"must_not":[{"term":{"defaultUser":{"value":"true"}}},{"term":{"defaultUser":{"value":"true"}}}]}}]}}]}}]}},"explain":false,"stored_fields":["companyId","entryClassPK","entryClassName","screenName","testField"],"track_scores":true}->->[] expected:<[[, ]]> but was:<[[]]>
         [exec] at org.junit.Assert.assertEquals(Assert.java:115)
         [exec] at com.liferay.portal.search.test.util.DocumentsAssert.assertValuesIgnoreRelevance(DocumentsAssert.java:87)
         [exec] at com.liferay.portal.search.indexer.post.processor.test.IndexerPostProcessorTest.assertSearch(IndexerPostProcessorTest.java:136)
         [exec] at com.liferay.portal.search.indexer.post.processor.test.IndexerPostProcessorTest.testNeverRegister(IndexerPostProcessorTest.java:85)
         [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.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)
         [exec]
         [exec] com.liferay.portal.search.indexer.post.processor.test.IndexerPostProcessorTest > testRegister STARTED
         [exec] 19:44:28,260 INFO [com.liferay.portal.search.test-executor-thread][AnalyticsConfigurationTrackerImpl:141] Unable to get configuration for company 20098
         [exec] 19:44:28,377 INFO [com.liferay.portal.search.test-executor-thread][AnalyticsConfigurationTrackerImpl:141] Unable to get configuration for company 20098
         [exec] 19:44:28,460 INFO [com.liferay.portal.search.test-executor-thread][AnalyticsConfigurationTrackerImpl:141] Unable to get configuration for company 20098
    

      Attachments

        Issue Links

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 weeks, 1 day ago

                Packages

                Version Package
                Master