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

AssertionError in SynonymSearchTest with remote elasticsearch

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: Search Infrastructure
    • Labels:
      None
    • Fix Priority:
      3

      Description

      Note: These failures are only happening when running tests with remote elasticsearch test suite, they are not occurring on search test suite with sidecar.

      SynonymSearchTest.testSearchOnLocaleWithCustomSynonymFilter and SynonymSearchTest.testSearchOnLocalesWithDefaultSynonymFilters are failing in remote search suite with:

      java.lang.AssertionError: {"from":0,"size":10000,"query":{"bool":{"must":[{"bool":{"must":[{"bool":{"should":[{"bool":{"must":[{"match":{"comments":{"query":"efectivo"}}}],"should":[{"match_phrase":{"comments":{"query":"efectivo","slop":50}}},{"match_phrase":{"comments":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content":{"query":"efectivo","slop":50}}},{"match_phrase":{"content":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description":{"query":"efectivo","slop":50}}},{"match_phrase":{"description":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"properties":{"wildcard":"*efectivo*"}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title":{"query":"efectivo"}}},{"match_phrase_prefix":{"title":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"should":[{"match_phrase":{"url":{"query":"efectivo"}}},{"bool":{"should":[{"wildcard":{"url":{"wildcard":"*efectivo*"}}}]}},{"match_phrase_prefix":{"url":{"query":"efectivo","max_expansions":300}}}]}},{"bool":{"should":[{"wildcard":{"userName":{"wildcard":"*efectivo*"}}}]}},{"bool":{"must":[{"match":{"assetCategoryTitles_sv_SE":{"query":"efectivo"}}}],"should":[{"match_phrase":{"assetCategoryTitles_sv_SE":{"query":"efectivo","slop":50}}},{"match_phrase":{"assetCategoryTitles_sv_SE":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"assetTagNames_sv_SE":{"query":"efectivo"}}},{"match_phrase_prefix":{"assetTagNames_sv_SE":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"assetTagNames_sv_SE":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"articleId":{"query":"efectivo"}}}],"should":[{"match_phrase":{"articleId":{"query":"efectivo","slop":50}}},{"match_phrase":{"articleId":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"classPK":{"query":"efectivo"}}}],"should":[{"match_phrase":{"classPK":{"query":"efectivo","slop":50}}},{"match_phrase":{"classPK":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_zh_CN":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content_zh_CN":{"query":"efectivo","slop":50}}},{"match_phrase":{"content_zh_CN":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_fi_FI":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content_fi_FI":{"query":"efectivo","slop":50}}},{"match_phrase":{"content_fi_FI":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_ca_ES":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content_ca_ES":{"query":"efectivo","slop":50}}},{"match_phrase":{"content_ca_ES":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_de_DE":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content_de_DE":{"query":"efectivo","slop":50}}},{"match_phrase":{"content_de_DE":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_hu_HU":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content_hu_HU":{"query":"efectivo","slop":50}}},{"match_phrase":{"content_hu_HU":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_pt_BR":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content_pt_BR":{"query":"efectivo","slop":50}}},{"match_phrase":{"content_pt_BR":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_es_ES":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content_es_ES":{"query":"efectivo","slop":50}}},{"match_phrase":{"content_es_ES":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_ar_SA":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content_ar_SA":{"query":"efectivo","slop":50}}},{"match_phrase":{"content_ar_SA":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_sv_SE":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content_sv_SE":{"query":"efectivo","slop":50}}},{"match_phrase":{"content_sv_SE":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_nl_NL":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content_nl_NL":{"query":"efectivo","slop":50}}},{"match_phrase":{"content_nl_NL":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_fr_FR":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content_fr_FR":{"query":"efectivo","slop":50}}},{"match_phrase":{"content_fr_FR":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_ja_JP":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content_ja_JP":{"query":"efectivo","slop":50}}},{"match_phrase":{"content_ja_JP":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_en_US":{"query":"efectivo"}}}],"should":[{"match_phrase":{"content_en_US":{"query":"efectivo","slop":50}}},{"match_phrase":{"content_en_US":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_ja_JP":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description_ja_JP":{"query":"efectivo","slop":50}}},{"match_phrase":{"description_ja_JP":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_fr_FR":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description_fr_FR":{"query":"efectivo","slop":50}}},{"match_phrase":{"description_fr_FR":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_fi_FI":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description_fi_FI":{"query":"efectivo","slop":50}}},{"match_phrase":{"description_fi_FI":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_ca_ES":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description_ca_ES":{"query":"efectivo","slop":50}}},{"match_phrase":{"description_ca_ES":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_de_DE":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description_de_DE":{"query":"efectivo","slop":50}}},{"match_phrase":{"description_de_DE":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_hu_HU":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description_hu_HU":{"query":"efectivo","slop":50}}},{"match_phrase":{"description_hu_HU":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_ar_SA":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description_ar_SA":{"query":"efectivo","slop":50}}},{"match_phrase":{"description_ar_SA":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_pt_BR":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description_pt_BR":{"query":"efectivo","slop":50}}},{"match_phrase":{"description_pt_BR":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_zh_CN":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description_zh_CN":{"query":"efectivo","slop":50}}},{"match_phrase":{"description_zh_CN":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_es_ES":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description_es_ES":{"query":"efectivo","slop":50}}},{"match_phrase":{"description_es_ES":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_en_US":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description_en_US":{"query":"efectivo","slop":50}}},{"match_phrase":{"description_en_US":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_nl_NL":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description_nl_NL":{"query":"efectivo","slop":50}}},{"match_phrase":{"description_nl_NL":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_sv_SE":{"query":"efectivo"}}}],"should":[{"match_phrase":{"description_sv_SE":{"query":"efectivo","slop":50}}},{"match_phrase":{"description_sv_SE":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"match":{"entryClassPK":{"query":"efectivo"}}}],"should":[{"match_phrase":{"entryClassPK":{"query":"efectivo","slop":50}}},{"match_phrase":{"entryClassPK":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_es_ES":{"query":"efectivo"}}},{"match_phrase_prefix":{"title_es_ES":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title_es_ES":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_ar_SA":{"query":"efectivo"}}},{"match_phrase_prefix":{"title_ar_SA":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title_ar_SA":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_nl_NL":{"query":"efectivo"}}},{"match_phrase_prefix":{"title_nl_NL":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title_nl_NL":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_zh_CN":{"query":"efectivo"}}},{"match_phrase_prefix":{"title_zh_CN":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title_zh_CN":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_ja_JP":{"query":"efectivo"}}},{"match_phrase_prefix":{"title_ja_JP":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title_ja_JP":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_pt_BR":{"query":"efectivo"}}},{"match_phrase_prefix":{"title_pt_BR":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title_pt_BR":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_sv_SE":{"query":"efectivo"}}},{"match_phrase_prefix":{"title_sv_SE":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title_sv_SE":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_fi_FI":{"query":"efectivo"}}},{"match_phrase_prefix":{"title_fi_FI":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title_fi_FI":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_en_US":{"query":"efectivo"}}},{"match_phrase_prefix":{"title_en_US":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title_en_US":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_ca_ES":{"query":"efectivo"}}},{"match_phrase_prefix":{"title_ca_ES":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title_ca_ES":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_de_DE":{"query":"efectivo"}}},{"match_phrase_prefix":{"title_de_DE":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title_de_DE":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_hu_HU":{"query":"efectivo"}}},{"match_phrase_prefix":{"title_hu_HU":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title_hu_HU":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_fr_FR":{"query":"efectivo"}}},{"match_phrase_prefix":{"title_fr_FR":{"query":"efectivo"}}}]}}],"should":[{"match_phrase":{"title_fr_FR":{"query":"efectivo","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"userName":{"wildcard":"*efectivo*"}}}]}}]}}]}}],"filter":[{"bool":{"must":[{"term":{"companyId":{"value":"142710"}}},{"bool":{"must":[{"terms":{"groupId":["144919"]}},{"terms":{"scopeGroupId":["144919"]}}]}},{"bool":{"should":[{"bool":{"must":[{"term":{"entryClassName":{"value":"com.liferay.journal.model.JournalArticle"}}},{"term":{"head":{"value":"true"}}},{"terms":{"status":["0"]}}],"must_not":[{"exists":{"field":"ctCollectionId"}}]}}]}}]}}]}},"explain":false,"stored_fields":"*","track_scores":true,"track_total_hits":2147483647}->[efectivo] expected:<2> but was:<1>
      	at org.junit.Assert.fail(Assert.java:89)
      	at org.junit.Assert.failNotEquals(Assert.java:835)
      	at org.junit.Assert.assertEquals(Assert.java:647)
      	at com.liferay.portal.search.test.util.DocumentsAssert.assertCount(DocumentsAssert.java:47)
      	at com.liferay.portal.search.tuning.synonyms.web.test.SynonymSearchTest.doAssertSearch(SynonymSearchTest.java:263)
      	at com.liferay.portal.search.tuning.synonyms.web.test.SynonymSearchTest.testSearchOnLocalesWithDefaultSynonymFilters(SynonymSearchTest.java:133)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$3.evaluate(TestExecutorRunnable.java:353)
      	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.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:237)
      	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$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 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:316)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
      	at java.lang.Thread.run(Thread.java:745)

      Full console log

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joshua.chong Joshua Chong
              Reporter:
              brooke.dalton Brooke Dalton
              Participants of an Issue:
              Recent user:
              Tibor Lipusz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 weeks, 6 days ago
                Development End Date:

                  Packages

                  Version Package