Description

    NestedFieldsFacetTest.testSelection is failing with:

    java.lang.AssertionError: {"from":0,"size":20,"query":{"bool":{"must":[{"term":{"entryClassName":{"value":"nestedfieldsfacettest.testselection"}}},{"term":{"companyId":{"value":"7506033892284241366"}}}]}},"post_filter":{"bool":{"must":[{"nested":{"query":{"bool":{"filter":[{"bool":{"must":[{"terms":{"ddmFieldArray.ddmFieldName":["ddm__keyword__40635__Field14510226_en_US"]}},{"terms":{"ddmFieldArray.ddmFieldValueKeyword_en_US":["three"]}}]}}]}},"path":"ddmFieldArray","ignore_unmapped":false,"score_mode":"sum"}}]}},"explain":false,"stored_fields":"*","track_total_hits":2147483647,"aggregations":{"ddmFieldArray.ddmFieldValueKeyword_en_US":{"nested":{"path":"ddmFieldArray"},"aggregations":{"ddmFieldArray.ddmFieldValueKeyword_en_US":{"filter":{"term":{"ddmFieldArray.ddmFieldName":{"value":"ddm__keyword__40635__Field14510226_en_US"}}},"aggregations":{"ddmFieldArray.ddmFieldValueKeyword_en_US":{"terms":{"field":"ddmFieldArray.ddmFieldValueKeyword_en_US","size":10,"min_doc_count":1,"shard_min_doc_count":0,"show_term_doc_count_error":false,"order":[{"_count":"desc"},{"_key":"asc"}]}}}}}}}}->[] expected:<4> but was:<0>
    	at org.junit.Assert.fail(Assert.java:88)
    	at org.junit.Assert.failNotEquals(Assert.java:834)
    	at org.junit.Assert.assertEquals(Assert.java:645)
    	at com.liferay.portal.search.test.util.indexing.BaseIndexingTestCase$IndexingTestHelper.assertResultCount(BaseIndexingTestCase.java:360)
    	at com.liferay.portal.search.test.util.facet.BaseFacetTestCase$FacetTestHelper.assertResultCount(BaseFacetTestCase.java:95)
    	at com.liferay.portal.search.test.util.facet.BaseSimpleFacetTestCase.lambda$testSelection$6(BaseSimpleFacetTestCase.java:154)
    	at com.liferay.portal.search.test.util.facet.BaseFacetTestCase.lambda$assertSearchFacet$0(BaseFacetTestCase.java:55)
    	at com.liferay.portal.search.test.util.indexing.BaseIndexingTestCase.lambda$assertSearch$0(BaseIndexingTestCase.java:203)
    	at com.liferay.portal.search.test.util.IdempotentRetryAssert.lambda$retryAssert$0(IdempotentRetryAssert.java:62)
    	at com.liferay.portal.search.test.util.IdempotentRetryAssert.retryAssert(IdempotentRetryAssert.java:43)
    	at com.liferay.portal.search.test.util.IdempotentRetryAssert.retryAssert(IdempotentRetryAssert.java:59)
    	at com.liferay.portal.search.test.util.indexing.BaseIndexingTestCase.assertSearch(BaseIndexingTestCase.java:201)
    	at com.liferay.portal.search.test.util.facet.BaseFacetTestCase.assertSearchFacet(BaseFacetTestCase.java:54)
    	at com.liferay.portal.search.test.util.facet.BaseSimpleFacetTestCase.testSelection(BaseSimpleFacetTestCase.java:146)
    	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 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    	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 org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
    	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
    	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    	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 org.junit.rules.RunRules.evaluate(RunRules.java:20)
    	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:110)
    	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
    	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)
    	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)
    	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
    	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
    	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
    	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
    	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
    	at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
    	at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:119)
    	at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
    	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
    	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
    	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
    	at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
    	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
    	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
    	at java.lang.Thread.run(Thread.java:745)

    Affected testcases:
    NestedFieldsFacetTest.testSelection
    NestedFieldsFacetTest.testUnmatchedAreIgnored
    NestedFieldsFacetTest.testMaxTermsNegative
    NestedFieldsFacetTest.testMaxTerms
    NestedFieldsFacetTest.testFrequencyThreshold
    NestedFieldsFacetTest.testMaxTermsZero
    NestedFieldsTest.testDDMNestedFieldsMatchLocalizedText
    NestedFieldsTest.testDDMNestedFieldsDynamicMapping
    NestedFieldsTest.testDDMNestedFieldsMatchKeyword
    NestedFieldsTest.testDDMNestedFieldsMatchMultipleValues
    NestedFieldsTest.testDDMNestedFieldsMatchText
    ElasticsearchSortFieldTranslatorTest.testFieldSortWithNestedSort
    NestedFieldsSortTest.testSort1
    NestedFieldsSortTest.testSort2
    NestedFieldsSortTest.testSort3

      Attachments

        Issue Links

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 weeks ago
              Development End Date:

                Packages

                Version Package