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

MultiLanguageSearchFieldsSharedAcrossIndexersTest intermittently failing due to missing index

    Details

      Description

      Test failure histories:

      MultiLanguageSearchFieldsSharedAcrossIndexersTest.testContent
      MultiLanguageSearchFieldsSharedAcrossIndexersTest.testContentWithAlternateDisplayLanguage
      MultiLanguageSearchFieldsSharedAcrossIndexersTest.testTitle
      MultiLanguageSearchFieldsSharedAcrossIndexersTest

      Example failure stacktrace:

      org.junit.ComparisonFailure: {"from":0,"size":10000,"query":{"bool":{"must":[{"bool":{"must":[{"bool":{"should":[{"bool":{"must":[{"match":{"comments":{"query":"english"}}}],"should":[{"match_phrase":{"comments":{"query":"english","slop":50}}},{"match_phrase":{"comments":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content":{"query":"english"}}}],"should":[{"match_phrase":{"content":{"query":"english","slop":50}}},{"match_phrase":{"content":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description":{"query":"english"}}}],"should":[{"match_phrase":{"description":{"query":"english","slop":50}}},{"match_phrase":{"description":{"query":"english","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"properties":{"wildcard":"*english*"}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title":{"query":"english"}}},{"match_phrase_prefix":{"title":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"url":{"query":"english"}}}],"should":[{"match_phrase":{"url":{"query":"english","slop":50}}},{"match_phrase":{"url":{"query":"english","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"userName":{"wildcard":"*english*"}}}]}},{"bool":{"must":[{"match":{"assetCategoryTitles_nl_NL":{"query":"english"}}}],"should":[{"match_phrase":{"assetCategoryTitles_nl_NL":{"query":"english","slop":50}}},{"match_phrase":{"assetCategoryTitles_nl_NL":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"assetTagNames_nl_NL":{"query":"english"}}},{"match_phrase_prefix":{"assetTagNames_nl_NL":{"query":"english"}}}]}}],"should":[{"match_phrase":{"assetTagNames_nl_NL":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"ddmContent":{"query":"english"}}}],"should":[{"match_phrase":{"ddmContent":{"query":"english","slop":50}}},{"match_phrase":{"ddmContent":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"extension":{"query":"english"}}}],"should":[{"match_phrase":{"extension":{"query":"english","slop":50}}},{"match_phrase":{"extension":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"fileEntryTypeId":{"query":"english"}}}],"should":[{"match_phrase":{"fileEntryTypeId":{"query":"english","slop":50}}},{"match_phrase":{"fileEntryTypeId":{"query":"english","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"path":{"wildcard":"*english*"}}}]}},{"bool":{"must":[{"match":{"content_nl_NL":{"query":"english"}}}],"should":[{"match_phrase":{"content_nl_NL":{"query":"english","slop":50}}},{"match_phrase":{"content_nl_NL":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"articleId":{"query":"english"}}}],"should":[{"match_phrase":{"articleId":{"query":"english","slop":50}}},{"match_phrase":{"articleId":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"classPK":{"query":"english"}}}],"should":[{"match_phrase":{"classPK":{"query":"english","slop":50}}},{"match_phrase":{"classPK":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_zh_CN":{"query":"english"}}}],"should":[{"match_phrase":{"content_zh_CN":{"query":"english","slop":50}}},{"match_phrase":{"content_zh_CN":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_fi_FI":{"query":"english"}}}],"should":[{"match_phrase":{"content_fi_FI":{"query":"english","slop":50}}},{"match_phrase":{"content_fi_FI":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_ca_ES":{"query":"english"}}}],"should":[{"match_phrase":{"content_ca_ES":{"query":"english","slop":50}}},{"match_phrase":{"content_ca_ES":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_de_DE":{"query":"english"}}}],"should":[{"match_phrase":{"content_de_DE":{"query":"english","slop":50}}},{"match_phrase":{"content_de_DE":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_hu_HU":{"query":"english"}}}],"should":[{"match_phrase":{"content_hu_HU":{"query":"english","slop":50}}},{"match_phrase":{"content_hu_HU":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_pt_BR":{"query":"english"}}}],"should":[{"match_phrase":{"content_pt_BR":{"query":"english","slop":50}}},{"match_phrase":{"content_pt_BR":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_es_ES":{"query":"english"}}}],"should":[{"match_phrase":{"content_es_ES":{"query":"english","slop":50}}},{"match_phrase":{"content_es_ES":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_ar_SA":{"query":"english"}}}],"should":[{"match_phrase":{"content_ar_SA":{"query":"english","slop":50}}},{"match_phrase":{"content_ar_SA":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_sv_SE":{"query":"english"}}}],"should":[{"match_phrase":{"content_sv_SE":{"query":"english","slop":50}}},{"match_phrase":{"content_sv_SE":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_nl_NL":{"query":"english"}}}],"should":[{"match_phrase":{"content_nl_NL":{"query":"english","slop":50}}},{"match_phrase":{"content_nl_NL":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_fr_FR":{"query":"english"}}}],"should":[{"match_phrase":{"content_fr_FR":{"query":"english","slop":50}}},{"match_phrase":{"content_fr_FR":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_ja_JP":{"query":"english"}}}],"should":[{"match_phrase":{"content_ja_JP":{"query":"english","slop":50}}},{"match_phrase":{"content_ja_JP":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_en_US":{"query":"english"}}}],"should":[{"match_phrase":{"content_en_US":{"query":"english","slop":50}}},{"match_phrase":{"content_en_US":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_ja_JP":{"query":"english"}}}],"should":[{"match_phrase":{"description_ja_JP":{"query":"english","slop":50}}},{"match_phrase":{"description_ja_JP":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_fr_FR":{"query":"english"}}}],"should":[{"match_phrase":{"description_fr_FR":{"query":"english","slop":50}}},{"match_phrase":{"description_fr_FR":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_fi_FI":{"query":"english"}}}],"should":[{"match_phrase":{"description_fi_FI":{"query":"english","slop":50}}},{"match_phrase":{"description_fi_FI":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_ca_ES":{"query":"english"}}}],"should":[{"match_phrase":{"description_ca_ES":{"query":"english","slop":50}}},{"match_phrase":{"description_ca_ES":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_de_DE":{"query":"english"}}}],"should":[{"match_phrase":{"description_de_DE":{"query":"english","slop":50}}},{"match_phrase":{"description_de_DE":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_hu_HU":{"query":"english"}}}],"should":[{"match_phrase":{"description_hu_HU":{"query":"english","slop":50}}},{"match_phrase":{"description_hu_HU":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_ar_SA":{"query":"english"}}}],"should":[{"match_phrase":{"description_ar_SA":{"query":"english","slop":50}}},{"match_phrase":{"description_ar_SA":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_pt_BR":{"query":"english"}}}],"should":[{"match_phrase":{"description_pt_BR":{"query":"english","slop":50}}},{"match_phrase":{"description_pt_BR":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_zh_CN":{"query":"english"}}}],"should":[{"match_phrase":{"description_zh_CN":{"query":"english","slop":50}}},{"match_phrase":{"description_zh_CN":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_es_ES":{"query":"english"}}}],"should":[{"match_phrase":{"description_es_ES":{"query":"english","slop":50}}},{"match_phrase":{"description_es_ES":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_en_US":{"query":"english"}}}],"should":[{"match_phrase":{"description_en_US":{"query":"english","slop":50}}},{"match_phrase":{"description_en_US":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_nl_NL":{"query":"english"}}}],"should":[{"match_phrase":{"description_nl_NL":{"query":"english","slop":50}}},{"match_phrase":{"description_nl_NL":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_sv_SE":{"query":"english"}}}],"should":[{"match_phrase":{"description_sv_SE":{"query":"english","slop":50}}},{"match_phrase":{"description_sv_SE":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"match":{"entryClassPK":{"query":"english"}}}],"should":[{"match_phrase":{"entryClassPK":{"query":"english","slop":50}}},{"match_phrase":{"entryClassPK":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_es_ES":{"query":"english"}}},{"match_phrase_prefix":{"title_es_ES":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title_es_ES":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_ar_SA":{"query":"english"}}},{"match_phrase_prefix":{"title_ar_SA":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title_ar_SA":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_nl_NL":{"query":"english"}}},{"match_phrase_prefix":{"title_nl_NL":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title_nl_NL":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_zh_CN":{"query":"english"}}},{"match_phrase_prefix":{"title_zh_CN":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title_zh_CN":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_ja_JP":{"query":"english"}}},{"match_phrase_prefix":{"title_ja_JP":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title_ja_JP":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_pt_BR":{"query":"english"}}},{"match_phrase_prefix":{"title_pt_BR":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title_pt_BR":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_sv_SE":{"query":"english"}}},{"match_phrase_prefix":{"title_sv_SE":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title_sv_SE":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_fi_FI":{"query":"english"}}},{"match_phrase_prefix":{"title_fi_FI":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title_fi_FI":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_en_US":{"query":"english"}}},{"match_phrase_prefix":{"title_en_US":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title_en_US":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_ca_ES":{"query":"english"}}},{"match_phrase_prefix":{"title_ca_ES":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title_ca_ES":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_de_DE":{"query":"english"}}},{"match_phrase_prefix":{"title_de_DE":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title_de_DE":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_hu_HU":{"query":"english"}}},{"match_phrase_prefix":{"title_hu_HU":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title_hu_HU":{"query":"english","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_fr_FR":{"query":"english"}}},{"match_phrase_prefix":{"title_fr_FR":{"query":"english"}}}]}}],"should":[{"match_phrase":{"title_fr_FR":{"query":"english","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"userName":{"wildcard":"*english*"}}}]}}]}}]}}],"filter":[{"bool":{"must":[{"term":{"companyId":{"value":"20098"}}},{"bool":{"must":[{"terms":{"groupId":["37761"]}},{"terms":{"scopeGroupId":["37761"]}}]}},{"bool":{"should":[{"bool":{"must":[{"term":{"entryClassName":{"value":"com.liferay.document.library.kernel.model.DLFileEntry"}}},{"term":{"hidden":{"value":"false"}}},{"term":{"hidden":{"value":"false"}}},{"terms":{"status":["0"]}},{"terms":{"status":["0"]}}]}},{"bool":{"must":[{"term":{"entryClassName":{"value":"com.liferay.journal.model.JournalArticle"}}},{"term":{"head":{"value":"true"}}},{"terms":{"status":["0"]}}]}}]}}]}}]}},"explain":false,"stored_fields":"*","track_scores":true}->->[] expected:<[[37775, 37789, 37801, 37811]]> but was:<[[]]>
      	at org.junit.Assert.assertEquals(Assert.java:115)
      	at com.liferay.portal.search.test.util.DocumentsAssert.assertValuesIgnoreRelevance(DocumentsAssert.java:89)
      	at com.liferay.portal.search.multilanguage.test.MultiLanguageSearchFieldsSharedAcrossIndexersTest.assertSearchMatchesAllAssets(MultiLanguageSearchFieldsSharedAcrossIndexersTest.java:281)
      	at com.liferay.portal.search.multilanguage.test.MultiLanguageSearchFieldsSharedAcrossIndexersTest.testTitleWithAlternateDisplayLanguage(MultiLanguageSearchFieldsSharedAcrossIndexersTest.java:149)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      

      Full console

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joshua.chong Joshua Chong
              Reporter:
              joshua.chong Joshua Chong
              Participants of an Issue:
              Recent user:
              Joshua Chong
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                25 weeks, 4 days ago

                  Packages

                  Version Package