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

PortalLogAssertorTest fails on log from document deletion attempted after company index already deleted

    Details

      Description

       

      Console Log Snippet for ES6
      junit.framework.AssertionFailedError: 
      java.lang.RuntimeException: org.elasticsearch.index.IndexNotFoundException: [liferay-38720] IndexNotFoundException[no such index]
      java.lang.RuntimeException: org.elasticsearch.index.IndexNotFoundException: [liferay-38720] IndexNotFoundException[no such index]
      	at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteIndices(IndexNameExpressionResolver.java:182)
      	at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteWriteIndex(IndexNameExpressionResolver.java:282)
      	at org.elasticsearch.action.bulk.TransportBulkAction$ConcreteIndices.resolveIfAbsent(TransportBulkAction.java:516)
      	at org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation.addFailureIfIndexIsUnavailable(TransportBulkAction.java:470)
      	at org.elasticsearch.action.bulk.TransportBulkAction$BulkOperation.doRun(TransportBulkAction.java:318)
      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
      	at org.elasticsearch.action.bulk.TransportBulkAction.executeBulk(TransportBulkAction.java:496)
      	at org.elasticsearch.action.bulk.TransportBulkAction.executeIngestAndBulk(TransportBulkAction.java:243)
      	at org.elasticsearch.action.bulk.TransportBulkAction.doExecute(TransportBulkAction.java:203)
      	at org.elasticsearch.action.bulk.TransportBulkAction.doExecute(TransportBulkAction.java:89)
      	at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:167)
      	at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:139)
      	at org.elasticsearch.action.bulk.TransportSingleItemBulkWriteAction.doExecute(TransportSingleItemBulkWriteAction.java:69)
      	at org.elasticsearch.action.bulk.TransportSingleItemBulkWriteAction.doExecute(TransportSingleItemBulkWriteAction.java:44)
      	at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:167)
      	at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:139)
      	at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:81)
      	at org.elasticsearch.client.node.NodeClient.executeLocally(NodeClient.java:87)
      	at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:76)
      	at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:395)
      	at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:384)
      	at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:46)
      	at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:53)
      	at com.liferay.portal.search.elasticsearch6.internal.search.engine.adapter.document.DeleteDocumentRequestExecutorImpl.execute(DeleteDocumentRequestExecutorImpl.java:42)
      	at com.liferay.portal.search.elasticsearch6.internal.search.engine.adapter.document.ElasticsearchDocumentRequestExecutor.executeDocumentRequest(ElasticsearchDocumentRequestExecutor.java:65)
      	at com.liferay.portal.search.engine.adapter.document.DeleteDocumentRequest.accept(DeleteDocumentRequest.java:43)
      	at com.liferay.portal.search.engine.adapter.document.DeleteDocumentRequest.accept(DeleteDocumentRequest.java:24)
      	at com.liferay.portal.search.elasticsearch6.internal.search.engine.adapter.ElasticsearchSearchEngineAdapterImpl.execute(ElasticsearchSearchEngineAdapterImpl.java:75)
      	at com.liferay.portal.search.elasticsearch6.internal.ElasticsearchIndexWriter.deleteDocument(ElasticsearchIndexWriter.java:166)
      	at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:82)
      	at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:58)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      	at com.liferay.portal.messaging.internal.SynchronousDestination.send(SynchronousDestination.java:46)
      	at com.liferay.portal.messaging.internal.DefaultMessageBus.sendMessage(DefaultMessageBus.java:237)
      	at com.liferay.portal.kernel.messaging.MessageBusUtil.sendMessage(MessageBusUtil.java:81)
      	at com.liferay.portal.kernel.messaging.proxy.BaseMultiDestinationProxyBean.send(BaseMultiDestinationProxyBean.java:34)
      	at com.liferay.portal.messaging.proxy.MultiDestinationMessagingProxyInvocationHandler.invoke(MultiDestinationMessagingProxyInvocationHandler.java:53)
      	at com.sun.proxy.$Proxy184.deleteDocument(Unknown Source)
      	at com.liferay.portal.search.internal.IndexWriterHelperImpl.deleteDocument(IndexWriterHelperImpl.java:184)
      	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.delete(IndexerWriterImpl.java:81)
      	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.delete(IndexerWriterImpl.java:100)
      	at com.liferay.portal.search.internal.indexer.DefaultIndexer.delete(DefaultIndexer.java:78)
      	at com.liferay.portal.search.internal.indexer.DefaultIndexer.delete(DefaultIndexer.java:50)
      	at com.liferay.portal.kernel.test.rule.DataGuardTestRule._smartDelete(DataGuardTestRule.java:541)
      	at com.liferay.portal.kernel.test.rule.DataGuardTestRule._autoDeleteLeftovers(DataGuardTestRule.java:464)
      	at com.liferay.portal.kernel.test.rule.DataGuardTestRule._autoDeleteAndAssert(DataGuardTestRule.java:364)
      	at com.liferay.portal.kernel.test.rule.DataGuardTestRule.afterClass(DataGuardTestRule.java:109)
      	at com.liferay.portal.kernel.test.rule.DataGuardTestRule.afterClass(DataGuardTestRule.java:69)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:66)
      	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.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
      	at java.lang.Thread.run(Thread.java:745)
      
      	at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:171)
      	at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:98)
      	at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:88)
      	at java.nio.file.Files.walkFileTree(Files.java:2670)
      	at java.nio.file.Files.walkFileTree(Files.java:2742)
      	at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(PortalLogAssertorTest.java:86) 
      Console Log Snippet for ES7
      junit.framework.AssertionFailedError: 
      java.lang.RuntimeException: org.elasticsearch.ElasticsearchStatusException: [liferay-38722] ElasticsearchStatusException[Elasticsearch exception [type=index_not_found_exception, reason=no such index [liferay-38722]]]
      java.lang.RuntimeException: org.elasticsearch.ElasticsearchStatusException: [liferay-38722] ElasticsearchStatusException[Elasticsearch exception [type=index_not_found_exception, reason=no such index [liferay-38722]]]
      	at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177)
      	at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1727)
      	at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1704)
      	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1464)
      	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1424)
      	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1394)
      	at org.elasticsearch.client.RestHighLevelClient.delete(RestHighLevelClient.java:906)
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.document.DeleteDocumentRequestExecutorImpl.getDeleteResponse(DeleteDocumentRequestExecutorImpl.java:64)
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.document.DeleteDocumentRequestExecutorImpl.execute(DeleteDocumentRequestExecutorImpl.java:47)
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.document.ElasticsearchDocumentRequestExecutor.executeDocumentRequest(ElasticsearchDocumentRequestExecutor.java:65)
      	at com.liferay.portal.search.engine.adapter.document.DeleteDocumentRequest.accept(DeleteDocumentRequest.java:43)
      	at com.liferay.portal.search.engine.adapter.document.DeleteDocumentRequest.accept(DeleteDocumentRequest.java:24)
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.ElasticsearchSearchEngineAdapterImpl.execute(ElasticsearchSearchEngineAdapterImpl.java:81)
      	at com.liferay.portal.search.elasticsearch7.internal.ElasticsearchIndexWriter.deleteDocument(ElasticsearchIndexWriter.java:166)
      	at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:82)
      	at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:58)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      	at com.liferay.portal.messaging.internal.SynchronousDestination.send(SynchronousDestination.java:46)
      	at com.liferay.portal.messaging.internal.DefaultMessageBus.sendMessage(DefaultMessageBus.java:237)
      	at com.liferay.portal.kernel.messaging.MessageBusUtil.sendMessage(MessageBusUtil.java:81)
      	at com.liferay.portal.kernel.messaging.proxy.BaseMultiDestinationProxyBean.send(BaseMultiDestinationProxyBean.java:34)
      	at com.liferay.portal.messaging.proxy.MultiDestinationMessagingProxyInvocationHandler.invoke(MultiDestinationMessagingProxyInvocationHandler.java:53)
      	at com.sun.proxy.$Proxy184.deleteDocument(Unknown Source)
      	at com.liferay.portal.search.internal.IndexWriterHelperImpl.deleteDocument(IndexWriterHelperImpl.java:184)
      	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.delete(IndexerWriterImpl.java:81)
      	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.delete(IndexerWriterImpl.java:100)
      	at com.liferay.portal.search.internal.indexer.DefaultIndexer.delete(DefaultIndexer.java:78)
      	at com.liferay.portal.search.internal.indexer.DefaultIndexer.delete(DefaultIndexer.java:50)
      	at com.liferay.portal.kernel.test.rule.DataGuardTestRule._smartDelete(DataGuardTestRule.java:541)
      	at com.liferay.portal.kernel.test.rule.DataGuardTestRule._autoDeleteLeftovers(DataGuardTestRule.java:464)
      	at com.liferay.portal.kernel.test.rule.DataGuardTestRule._autoDeleteAndAssert(DataGuardTestRule.java:364)
      	at com.liferay.portal.kernel.test.rule.DataGuardTestRule.afterClass(DataGuardTestRule.java:109)
      	at com.liferay.portal.kernel.test.rule.DataGuardTestRule.afterClass(DataGuardTestRule.java:69)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:66)
      	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.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
      	at java.lang.Thread.run(Thread.java:745)
      
      	at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:171)
      	at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:98)
      	at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:88)
      	at java.nio.file.Files.walkFileTree(Files.java:2670)
      	at java.nio.file.Files.walkFileTree(Files.java:2742)
      	at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(PortalLogAssertorTest.java:86) 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brooke.dalton Brooke Dalton
                Reporter:
                brooke.dalton Brooke Dalton
                Participants of an Issue:
                Recent user:
                André Ricardo Barreto de Oliveira
                Engineering Assignee:
                Adam Brandizzi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  12 weeks, 3 days ago

                  Packages

                  Version Package
                  7.3.3 CE GA4
                  Master