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

Comparison Failure in AssetTagNamesFieldQueryBuilderTest.testBasicWordMatches

    Details

    • Fix Priority:
      3
    • Sprint:
      Search|S03 Sprint 21|9.1-9.21

      Description

      AssetTagNamesFieldQueryBuilderTest.testBasicWordMatches is failing with:

      [exec] com.liferay.portal.search.elasticsearch7.internal.mappings.AssetTagNamesFieldQueryBuilderTest > testBasicWordMatches FAILED
           [exec]     org.junit.ComparisonFailure: tag->{uid=[assettagnamesfieldquerybuildertest.testbasicwordmatches_PORTLET_371087892225717818], companyId=[1716418035786908553], entryClassPK=[371087892225717818], entryClassName=[assettagnamesfieldquerybuildertest.testbasicwordmatches], groupId=[9044098175010864265], assetTagNames_en_US=[Tag Name]},{uid=[assettagnamesfieldquerybuildertest.testbasicwordmatches_PORTLET_3431239754415318241], companyId=[1716418035786908553], entryClassPK=[3431239754415318241], entryClassName=[assettagnamesfieldquerybuildertest.testbasicwordmatches], groupId=[9044098175010864265], assetTagNames_en_US=[name tag end]},{uid=[assettagnamesfieldquerybuildertest.testbasicwordmatches_PORTLET_7507768089742078370], companyId=[1716418035786908553], entryClassPK=[7507768089742078370], entryClassName=[assettagnamesfieldquerybuildertest.testbasicwordmatches], groupId=[9044098175010864265], assetTagNames_en_US=[TAG1]}->[Tag Name, name tag end, TAG1] expected:<[T[AG1, Tag Name, name tag end]]> but was:<[T[ag Name, name tag end, TAG1]]>
           [exec]         at org.junit.Assert.assertEquals(Assert.java:115)
           [exec]         at com.liferay.portal.search.test.util.DocumentsAssert.assertValues(DocumentsAssert.java:65)
           [exec]         at com.liferay.portal.search.test.util.DocumentsAssert.assertValues(DocumentsAssert.java:55)
           [exec]         at com.liferay.portal.search.test.util.mappings.BaseFieldQueryBuilderTestCase.lambda$null$2(BaseFieldQueryBuilderTestCase.java:102)
           [exec]         at com.liferay.portal.search.test.util.indexing.BaseIndexingTestCase$IndexingTestHelper.verify(BaseIndexingTestCase.java:416)
           [exec]         at com.liferay.portal.search.test.util.mappings.BaseFieldQueryBuilderTestCase.lambda$assertSearch$3(BaseFieldQueryBuilderTestCase.java:101)
           [exec]         at com.liferay.portal.search.test.util.indexing.BaseIndexingTestCase.lambda$assertSearch$0(BaseIndexingTestCase.java:178)
           [exec]         at com.liferay.portal.search.test.util.IdempotentRetryAssert.lambda$retryAssert$0(IdempotentRetryAssert.java:62)
           [exec]         at com.liferay.portal.search.test.util.IdempotentRetryAssert.retryAssert(IdempotentRetryAssert.java:43)
           [exec]         at com.liferay.portal.search.test.util.IdempotentRetryAssert.retryAssert(IdempotentRetryAssert.java:59)
           [exec]         at com.liferay.portal.search.test.util.indexing.BaseIndexingTestCase.assertSearch(BaseIndexingTestCase.java:176)
           [exec]         at com.liferay.portal.search.test.util.mappings.BaseFieldQueryBuilderTestCase.assertSearch(BaseFieldQueryBuilderTestCase.java:95)
           [exec]         at com.liferay.portal.search.elasticsearch7.internal.mappings.AssetTagNamesFieldQueryBuilderTest.testBasicWordMatches(AssetTagNamesFieldQueryBuilderTest.java:54)
           [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 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
           [exec]         at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
           [exec]         at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
           [exec]         at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
           [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 org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
           [exec]         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
           [exec]         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
           [exec]         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
           [exec]         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
           [exec]         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
           [exec]         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
           [exec]         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
           [exec]         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
           [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 org.junit.runners.ParentRunner.run(ParentRunner.java:363)
           [exec]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:110)
           [exec]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
           [exec]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)
           [exec]         at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)
           [exec]         at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
           [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 org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
           [exec]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
           [exec]         at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
           [exec]         at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
           [exec]         at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
           [exec]         at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:118)
           [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 org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
           [exec]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
           [exec]         at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
           [exec]         at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
           [exec]         at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:412)
           [exec]         at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
           [exec]         at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
           [exec]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
           [exec]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           [exec]         at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
           [exec]         at java.lang.Thread.run(Thread.java:745)

      Reproducible on:
      Tomcat 9.0.33 + MySQL 5.7 Portal Master GIT ID: 7e7782a8cfb106ddfb68231dc8f217633b4a8110

        Attachments

          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:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              26 weeks ago

                Packages

                Version Package
                Master