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

AssertionError on JournalArticleIndexerLocalizedContentTest#testIndexedFieldsMissingWhenContentIsEmpty

    Description

    Error Message

         [exec] com.liferay.journal.search.test.JournalArticleIndexerLocalizedContentTest > testIndexedFieldsMissingWhenContentIsEmpty FAILED
         [exec]     java.lang.AssertionError: {"from":0,"size":10000,"query":{"bool":{"must":[{"bool":{"must":[{"bool":{"should":[{"bool":{"must":[{"match":{"comments":{"query":"47780"}}}],"should":[{"match_phrase":{"comments":{"query":"47780","slop":50}}},{"match_phrase":{"comments":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content":{"query":"47780"}}}],"should":[{"match_phrase":{"content":{"query":"47780","slop":50}}},{"match_phrase":{"content":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description":{"query":"47780"}}}],"should":[{"match_phrase":{"description":{"query":"47780","slop":50}}},{"match_phrase":{"description":{"query":"47780","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"properties":{"wildcard":"*47780*"}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title":{"query":"47780"}}},{"match_phrase_prefix":{"title":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title":{"query":"47780","boost":2.0}}}]}},{"bool":{"should":[{"match_phrase":{"url":{"query":"47780"}}},{"bool":{"should":[{"wildcard":{"url":{"wildcard":"*47780*"}}}]}},{"match_phrase_prefix":{"url":{"query":"47780","max_expansions":300}}}]}},{"bool":{"should":[{"wildcard":{"userName":{"wildcard":"*47780*"}}}]}},{"bool":{"must":[{"match":{"assetCategoryTitles_pt_BR":{"query":"47780"}}}],"should":[{"match_phrase":{"assetCategoryTitles_pt_BR":{"query":"47780","slop":50}}},{"match_phrase":{"assetCategoryTitles_pt_BR":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"assetTagNames_pt_BR":{"query":"47780"}}},{"match_phrase_prefix":{"assetTagNames_pt_BR":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"assetTagNames_pt_BR":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"articleId":{"query":"47780"}}}],"should":[{"match_phrase":{"articleId":{"query":"47780","slop":50}}},{"match_phrase":{"articleId":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"classPK":{"query":"47780"}}}],"should":[{"match_phrase":{"classPK":{"query":"47780","slop":50}}},{"match_phrase":{"classPK":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_zh_CN":{"query":"47780"}}}],"should":[{"match_phrase":{"content_zh_CN":{"query":"47780","slop":50}}},{"match_phrase":{"content_zh_CN":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_fi_FI":{"query":"47780"}}}],"should":[{"match_phrase":{"content_fi_FI":{"query":"47780","slop":50}}},{"match_phrase":{"content_fi_FI":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_ca_ES":{"query":"47780"}}}],"should":[{"match_phrase":{"content_ca_ES":{"query":"47780","slop":50}}},{"match_phrase":{"content_ca_ES":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_de_DE":{"query":"47780"}}}],"should":[{"match_phrase":{"content_de_DE":{"query":"47780","slop":50}}},{"match_phrase":{"content_de_DE":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_hu_HU":{"query":"47780"}}}],"should":[{"match_phrase":{"content_hu_HU":{"query":"47780","slop":50}}},{"match_phrase":{"content_hu_HU":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_pt_BR":{"query":"47780"}}}],"should":[{"match_phrase":{"content_pt_BR":{"query":"47780","slop":50}}},{"match_phrase":{"content_pt_BR":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_es_ES":{"query":"47780"}}}],"should":[{"match_phrase":{"content_es_ES":{"query":"47780","slop":50}}},{"match_phrase":{"content_es_ES":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_ar_SA":{"query":"47780"}}}],"should":[{"match_phrase":{"content_ar_SA":{"query":"47780","slop":50}}},{"match_phrase":{"content_ar_SA":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_sv_SE":{"query":"47780"}}}],"should":[{"match_phrase":{"content_sv_SE":{"query":"47780","slop":50}}},{"match_phrase":{"content_sv_SE":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_nl_NL":{"query":"47780"}}}],"should":[{"match_phrase":{"content_nl_NL":{"query":"47780","slop":50}}},{"match_phrase":{"content_nl_NL":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_fr_FR":{"query":"47780"}}}],"should":[{"match_phrase":{"content_fr_FR":{"query":"47780","slop":50}}},{"match_phrase":{"content_fr_FR":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_ja_JP":{"query":"47780"}}}],"should":[{"match_phrase":{"content_ja_JP":{"query":"47780","slop":50}}},{"match_phrase":{"content_ja_JP":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content_en_US":{"query":"47780"}}}],"should":[{"match_phrase":{"content_en_US":{"query":"47780","slop":50}}},{"match_phrase":{"content_en_US":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_ja_JP":{"query":"47780"}}}],"should":[{"match_phrase":{"description_ja_JP":{"query":"47780","slop":50}}},{"match_phrase":{"description_ja_JP":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_fr_FR":{"query":"47780"}}}],"should":[{"match_phrase":{"description_fr_FR":{"query":"47780","slop":50}}},{"match_phrase":{"description_fr_FR":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_fi_FI":{"query":"47780"}}}],"should":[{"match_phrase":{"description_fi_FI":{"query":"47780","slop":50}}},{"match_phrase":{"description_fi_FI":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_ca_ES":{"query":"47780"}}}],"should":[{"match_phrase":{"description_ca_ES":{"query":"47780","slop":50}}},{"match_phrase":{"description_ca_ES":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_de_DE":{"query":"47780"}}}],"should":[{"match_phrase":{"description_de_DE":{"query":"47780","slop":50}}},{"match_phrase":{"description_de_DE":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_hu_HU":{"query":"47780"}}}],"should":[{"match_phrase":{"description_hu_HU":{"query":"47780","slop":50}}},{"match_phrase":{"description_hu_HU":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_ar_SA":{"query":"47780"}}}],"should":[{"match_phrase":{"description_ar_SA":{"query":"47780","slop":50}}},{"match_phrase":{"description_ar_SA":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_pt_BR":{"query":"47780"}}}],"should":[{"match_phrase":{"description_pt_BR":{"query":"47780","slop":50}}},{"match_phrase":{"description_pt_BR":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_zh_CN":{"query":"47780"}}}],"should":[{"match_phrase":{"description_zh_CN":{"query":"47780","slop":50}}},{"match_phrase":{"description_zh_CN":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_es_ES":{"query":"47780"}}}],"should":[{"match_phrase":{"description_es_ES":{"query":"47780","slop":50}}},{"match_phrase":{"description_es_ES":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_en_US":{"query":"47780"}}}],"should":[{"match_phrase":{"description_en_US":{"query":"47780","slop":50}}},{"match_phrase":{"description_en_US":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_nl_NL":{"query":"47780"}}}],"should":[{"match_phrase":{"description_nl_NL":{"query":"47780","slop":50}}},{"match_phrase":{"description_nl_NL":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description_sv_SE":{"query":"47780"}}}],"should":[{"match_phrase":{"description_sv_SE":{"query":"47780","slop":50}}},{"match_phrase":{"description_sv_SE":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"match":{"entryClassPK":{"query":"47780"}}}],"should":[{"match_phrase":{"entryClassPK":{"query":"47780","slop":50}}},{"match_phrase":{"entryClassPK":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_es_ES":{"query":"47780"}}},{"match_phrase_prefix":{"title_es_ES":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title_es_ES":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_ar_SA":{"query":"47780"}}},{"match_phrase_prefix":{"title_ar_SA":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title_ar_SA":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_nl_NL":{"query":"47780"}}},{"match_phrase_prefix":{"title_nl_NL":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title_nl_NL":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_zh_CN":{"query":"47780"}}},{"match_phrase_prefix":{"title_zh_CN":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title_zh_CN":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_ja_JP":{"query":"47780"}}},{"match_phrase_prefix":{"title_ja_JP":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title_ja_JP":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_pt_BR":{"query":"47780"}}},{"match_phrase_prefix":{"title_pt_BR":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title_pt_BR":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_sv_SE":{"query":"47780"}}},{"match_phrase_prefix":{"title_sv_SE":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title_sv_SE":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_fi_FI":{"query":"47780"}}},{"match_phrase_prefix":{"title_fi_FI":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title_fi_FI":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_en_US":{"query":"47780"}}},{"match_phrase_prefix":{"title_en_US":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title_en_US":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_ca_ES":{"query":"47780"}}},{"match_phrase_prefix":{"title_ca_ES":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title_ca_ES":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_de_DE":{"query":"47780"}}},{"match_phrase_prefix":{"title_de_DE":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title_de_DE":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_hu_HU":{"query":"47780"}}},{"match_phrase_prefix":{"title_hu_HU":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title_hu_HU":{"query":"47780","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title_fr_FR":{"query":"47780"}}},{"match_phrase_prefix":{"title_fr_FR":{"query":"47780"}}}]}}],"should":[{"match_phrase":{"title_fr_FR":{"query":"47780","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"userName":{"wildcard":"*47780*"}}}]}}]}}]}}],"filter":[{"bool":{"must":[{"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}->[] expected:<1> but was:<0>
         [exec]     	at org.junit.Assert.fail(Assert.java:89)
         [exec]     	at org.junit.Assert.failNotEquals(Assert.java:835)
         [exec]     	at org.junit.Assert.assertEquals(Assert.java:647)
         [exec]     	at com.liferay.portal.search.test.util.HitsAssert.assertOnlyOne(HitsAssert.java:61)
         [exec]     	at com.liferay.portal.search.test.util.IndexerFixture.searchOnlyOne(IndexerFixture.java:157)
         [exec]     	at com.liferay.portal.search.test.util.IndexerFixture.searchOnlyOne(IndexerFixture.java:177)
         [exec]     	at com.liferay.portal.search.test.util.IndexerFixture.searchOnlyOne(IndexerFixture.java:170)
         [exec]     	at com.liferay.journal.search.test.JournalArticleIndexerLocalizedContentTest.testIndexedFieldsMissingWhenContentIsEmpty(JournalArticleIndexerLocalizedContentTest.java:258)
         [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$3.evaluate(TestExecutorRunnable.java:353)
         [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.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:237)
         [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 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:316)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
         [exec]     	at java.lang.Thread.run(Thread.java:745)
    

    Affect Test
    JournalArticleIndexerLocalizedContentTest#testIndexedFieldsMissingWhenContentIsEmpty

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            yang.cao Yang Cao
            Participants of an Issue:
            Recent user:
            Rafaela Nascimento
            Engineering Assignee:
            Marcela Cunha
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 weeks, 2 days ago

                Packages

                Version Package
                7.4.0 CE GA1
                Master