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

IndexNotFoundException on Portal startup during integration tests

    Description

    Incidences:

    Date Test Name Location Jenkins
    3/23/2020 PortalLogAssertorTest on integration tests - Error appeared on startup before tests master ci:test:search canary  link 
     3/25/2020  Occurred during multiple Elasticsearch 6 unit test runs - see link  dev PR ci:forward link 

    Example stacktrace:

    FrameworkEvent ERROR 
    [liferay-0] IndexNotFoundException[no such index]
    	at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.indexNotFoundException(IndexNameExpressionResolver.java:720)
    	at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.innerResolve(IndexNameExpressionResolver.java:672)
    	at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.resolve(IndexNameExpressionResolver.java:628)
    	at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteIndices(IndexNameExpressionResolver.java:164)
    	at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteIndexNames(IndexNameExpressionResolver.java:143)
    	at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteIndexNames(IndexNameExpressionResolver.java:76)
    	at org.elasticsearch.action.admin.indices.mapping.get.TransportGetMappingsAction.checkBlock(TransportGetMappingsAction.java:62)
    	at org.elasticsearch.action.admin.indices.mapping.get.TransportGetMappingsAction.checkBlock(TransportGetMappingsAction.java:40)
    	at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.doStart(TransportMasterNodeAction.java:157)
    	at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.start(TransportMasterNodeAction.java:148)
    	at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:125)
    	at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:56)
    	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.client.support.AbstractClient$IndicesAdmin.execute(AbstractClient.java:1242)
    	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.index.LiferayDocumentTypeFactory.getMappings(LiferayDocumentTypeFactory.java:131)
    	at com.liferay.portal.search.elasticsearch6.internal.index.LiferayDocumentTypeFactory.mergeDynamicTemplates(LiferayDocumentTypeFactory.java:177)
    	at com.liferay.portal.search.elasticsearch6.internal.index.LiferayDocumentTypeFactory.addTypeMappings(LiferayDocumentTypeFactory.java:62)
    	at com.liferay.portal.search.elasticsearch6.internal.index.LiferayDocumentTypeFactory.createOptionalDefaultTypeMappings(LiferayDocumentTypeFactory.java:91)
    	at com.liferay.portal.search.elasticsearch6.internal.index.CompanyIndexFactory.updateLiferayDocumentType(CompanyIndexFactory.java:376)
    	at com.liferay.portal.search.elasticsearch6.internal.index.CompanyIndexFactory.createIndex(CompanyIndexFactory.java:176)
    	at com.liferay.portal.search.elasticsearch6.internal.index.CompanyIndexFactory.createIndices(CompanyIndexFactory.java:85)
    	at com.liferay.portal.search.elasticsearch6.internal.ElasticsearchSearchEngine.initialize(ElasticsearchSearchEngine.java:112)
    	at com.liferay.portal.kernel.search.SearchEngineProxyWrapper.initialize(SearchEngineProxyWrapper.java:59)
    	at com.liferay.portal.kernel.search.BaseSearchEngineConfigurator.setSearchEngine(BaseSearchEngineConfigurator.java:457)
    	at com.liferay.portal.kernel.search.BaseSearchEngineConfigurator.initSearchEngine(BaseSearchEngineConfigurator.java:387)
    	at com.liferay.portal.kernel.search.BaseSearchEngineConfigurator.initialize(BaseSearchEngineConfigurator.java:323)
    	at com.liferay.portal.search.elasticsearch6.internal.ElasticsearchEngineConfigurator.initialize(ElasticsearchEngineConfigurator.java:114)
    	at com.liferay.portal.kernel.search.BaseSearchEngineConfigurator$1.dependenciesFulfilled(BaseSearchEngineConfigurator.java:76)
    	at com.liferay.registry.dependency.ServiceDependencyManager.verifyDependencies(ServiceDependencyManager.java:145)
    ...
    

    The specific index that is missing would vary depending on the test. For example, the integration startup error had the [liferay-0] index missing, whereas the unit tests had the [workflow-processes] and [test_request_index] indices missing.

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

              Dates

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

                Packages

                Version Package
                7.3.1 CE GA2
                7.3.2 CE GA3
                7.3.3 CE GA4
                7.3.10 DXP GA1
                Master