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

Index not found exception from document deletion attempt after company index has already been deleted

    Details

      Description

      Console Log Snippet
      [junit] 14:01:33,311 WARN  [com.liferay.company.test-executor-thread][ProxyMessageListener:88] java.lang.RuntimeException: org.elasticsearch.ElasticsearchStatusException: [liferay-40310] ElasticsearchStatusException[Elasticsearch exception [type=index_not_found_exception, reason=no such index [liferay-40310]]]
          [junit] java.lang.RuntimeException: org.elasticsearch.ElasticsearchStatusException: [liferay-40310] ElasticsearchStatusException[Elasticsearch exception [type=index_not_found_exception, reason=no such index [liferay-40310]]]
          [junit] 	at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1727)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1704)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1464)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1424)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1394)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.delete(RestHighLevelClient.java:906)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.document.DeleteDocumentRequestExecutorImpl.getDeleteResponse(DeleteDocumentRequestExecutorImpl.java:64)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.document.DeleteDocumentRequestExecutorImpl.execute(DeleteDocumentRequestExecutorImpl.java:47)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.document.ElasticsearchDocumentRequestExecutor.executeDocumentRequest(ElasticsearchDocumentRequestExecutor.java:65)
          [junit] 	at com.liferay.portal.search.engine.adapter.document.DeleteDocumentRequest.accept(DeleteDocumentRequest.java:43)
          [junit] 	at com.liferay.portal.search.engine.adapter.document.DeleteDocumentRequest.accept(DeleteDocumentRequest.java:24)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.ElasticsearchSearchEngineAdapterImpl.execute(ElasticsearchSearchEngineAdapterImpl.java:81)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.ElasticsearchIndexWriter.deleteDocument(ElasticsearchIndexWriter.java:168)
          [junit] 	at sun.reflect.GeneratedMethodAccessor427.invoke(Unknown Source)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:82)
          [junit] 	at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:58)
          [junit] 	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
          [junit] 	at com.liferay.portal.messaging.internal.SynchronousDestination.send(SynchronousDestination.java:46)
          [junit] 	at com.liferay.portal.messaging.internal.DefaultMessageBus.sendMessage(DefaultMessageBus.java:267)
          [junit] 	at com.liferay.portal.kernel.messaging.MessageBusUtil.sendMessage(MessageBusUtil.java:81)
          [junit] 	at com.liferay.portal.kernel.messaging.proxy.BaseMultiDestinationProxyBean.send(BaseMultiDestinationProxyBean.java:34)
          [junit] 	at com.liferay.portal.messaging.proxy.MultiDestinationMessagingProxyInvocationHandler.invoke(MultiDestinationMessagingProxyInvocationHandler.java:53)
          [junit] 	at com.sun.proxy.$Proxy184.deleteDocument(Unknown Source)
          [junit] 	at com.liferay.portal.search.internal.IndexWriterHelperImpl.deleteDocument(IndexWriterHelperImpl.java:184)
          [junit] 	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.delete(IndexerWriterImpl.java:81)
          [junit] 	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.delete(IndexerWriterImpl.java:100)
          [junit] 	at com.liferay.portal.search.internal.indexer.DefaultIndexer.delete(DefaultIndexer.java:78)
          [junit] 	at com.liferay.portal.search.internal.indexer.DefaultIndexer.delete(DefaultIndexer.java:50)
          [junit] 	at com.liferay.portal.kernel.test.rule.DataGuardTestRule._smartDelete(DataGuardTestRule.java:558)
          [junit] 	at com.liferay.portal.kernel.test.rule.DataGuardTestRule._autoDeleteLeftovers(DataGuardTestRule.java:479)
          [junit] 	at com.liferay.portal.kernel.test.rule.DataGuardTestRule._autoDeleteAndAssert(DataGuardTestRule.java:379)
          [junit] 	at com.liferay.portal.kernel.test.rule.DataGuardTestRule.afterClass(DataGuardTestRule.java:113)
          [junit] 	at com.liferay.portal.kernel.test.rule.DataGuardTestRule.afterClass(DataGuardTestRule.java:71)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:66)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
          [junit] 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
          [junit] 	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
          [junit] 	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
          [junit] 	at java.lang.Thread.run(Thread.java:745)

      Full console log

      Able to consistently reproduce error when running test CompanyLocalServiceTest#testAddAndDeleteCompanyWithCompanyGroupStaging

      Reproduced on:
      Tomcat 9.0.33 + MySQL 5.7 Portal Master GIT ID: f877a14bb70ccb8fbad0e749d1a164c443a9efa4

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                21 weeks, 1 day ago

                  Packages

                  Version Package
                  7.3.3 CE GA4
                  7.3.10 DXP GA1
                  Master