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

SynonymSearchTest throws ElasticsearchStatusException

    Details

    • Fix Priority:
      3

      Description

      PortalLogAssertorTest.testScanXMLLog threw a warning when running the newly added SynonymSearchTest(LPS-128388):
      Full console log

       [junit] 2021-03-10 14:44:13.725 WARN  [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConfiguration)][CompanyIndexFactory:215] Unable to reinitialize index for company 0
          [junit] [liferay-0/zKExA75dRjOB1IUORWODmA] ElasticsearchStatusException[Elasticsearch exception [type=resource_already_exists_exception, reason=index [liferay-0/zKExA75dRjOB1IUORWODmA] already exists]]
          [junit] 	at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:187)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1892)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1869)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1626)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1583)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1553)
          [junit] 	at org.elasticsearch.client.IndicesClient.create(IndicesClient.java:316)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.index.CompanyIndexFactory.createIndex(CompanyIndexFactory.java:236)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.index.CompanyIndexFactory.createIndices(CompanyIndexFactory.java:96)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.index.CompanyIndexFactory.createCompanyIndexes(CompanyIndexFactory.java:211)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.index.CompanyIndexFactory.onElasticsearchConfigurationUpdate(CompanyIndexFactory.java:130)
          [junit] 	at java.lang.Iterable.forEach(Iterable.java:75)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.configuration.ElasticsearchConfigurationWrapper.activate(ElasticsearchConfigurationWrapper.java:279)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228)
          [junit] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41)
          [junit] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664)
          [junit] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510)
          [junit] 	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:310)
          [junit] 	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:300)
          [junit] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.invokeModifiedMethod(SingleComponentManager.java:837)
          [junit] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.modify(SingleComponentManager.java:792)
          [junit] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManager.java:710)
          [junit] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManager.java:674)
          [junit] 	at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.configurationUpdated(ConfigurableComponentHolder.java:435)
          [junit] 	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.configurationEvent(RegionConfigurationSupport.java:317)
          [junit] 	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport$2.configurationEvent(RegionConfigurationSupport.java:119)
          [junit] 	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:1685)
          [junit] 	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1637)
          [junit] 	at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138)
          [junit] 	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105)
          [junit] 	at java.lang.Thread.run(Thread.java:745)
          [junit] 	Suppressed: org.elasticsearch.client.ResponseException: method [PUT], host [http://127.0.0.1:9201], URI [/liferay-0?master_timeout=30s&include_type_name=true&timeout=30s], status line [HTTP/1.1 400 Bad Request]
          [junit] Warnings: [[types removal] Using include_type_name in create index requests is deprecated. The parameter will be removed in the next major version.]
          [junit] {"error":{"root_cause":[{"type":"resource_already_exists_exception","reason":"index [liferay-0/zKExA75dRjOB1IUORWODmA] already exists","index_uuid":"zKExA75dRjOB1IUORWODmA","index":"liferay-0"}],"type":"resource_already_exists_exception","reason":"index [liferay-0/zKExA75dRjOB1IUORWODmA] already exists","index_uuid":"zKExA75dRjOB1IUORWODmA","index":"liferay-0"},"status":400}
          [junit] 		at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:302)
          [junit] 		at org.elasticsearch.client.RestClient.performRequest(RestClient.java:272)
          [junit] 		at org.elasticsearch.client.RestClient.performRequest(RestClient.java:246)
          [junit] 		at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1613)
          [junit] 		... 31 more
          [junit] 2021-03-10 14:44:52.359 INFO  [com.liferay.portal.search.tuning.synonyms.web.test-executor-thread][CompanyIndexFactory:57] liferay-140333
          [junit] 2021-03-10 14:45:30.477 INFO  [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConfiguration)][Sidecar:132] Stopping sidecar Elasticsearch
          [junit] 2021-03-10 14:45:38.419 INFO  [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConfiguration)][Sidecar:119] Sidecar Elasticsearch liferay started at 127.0.0.1:9201
          [junit] 2021-03-10 14:45:39.697 WARN  [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConfiguration)][CompanyIndexFactory:215] Unable to reinitialize index for company 0
          [junit] [liferay-0/zKExA75dRjOB1IUORWODmA] ElasticsearchStatusException[Elasticsearch exception [type=resource_already_exists_exception, reason=index [liferay-0/zKExA75dRjOB1IUORWODmA] already exists]]
          [junit] 	at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:187)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1892)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1869)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1626)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1583)
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1553)
          [junit] 	at org.elasticsearch.client.IndicesClient.create(IndicesClient.java:316)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.index.CompanyIndexFactory.createIndex(CompanyIndexFactory.java:236)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.index.CompanyIndexFactory.createIndices(CompanyIndexFactory.java:96)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.index.CompanyIndexFactory.createCompanyIndexes(CompanyIndexFactory.java:211)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.index.CompanyIndexFactory.onElasticsearchConfigurationUpdate(CompanyIndexFactory.java:130)
          [junit] 	at java.lang.Iterable.forEach(Iterable.java:75)
          [junit] 	at com.liferay.portal.search.elasticsearch7.internal.configuration.ElasticsearchConfigurationWrapper.activate(ElasticsearchConfigurationWrapper.java:279)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228)
          [junit] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41)
          [junit] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664)
          [junit] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510)
          [junit] 	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:310)
          [junit] 	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:300)
          [junit] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.invokeModifiedMethod(SingleComponentManager.java:837)
          [junit] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.modify(SingleComponentManager.java:792)
          [junit] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManager.java:710)
          [junit] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManager.java:674)
          [junit] 	at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.configurationUpdated(ConfigurableComponentHolder.java:435)
          [junit] 	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.configurationEvent(RegionConfigurationSupport.java:317)
          [junit] 	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport$2.configurationEvent(RegionConfigurationSupport.java:119)
          [junit] 	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:1685)
          [junit] 	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1637)
          [junit] 	at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138)
          [junit] 	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105)
          [junit] 	at java.lang.Thread.run(Thread.java:745)
          [junit] 	Suppressed: org.elasticsearch.client.ResponseException: method [PUT], host [http://127.0.0.1:9201], URI [/liferay-0?master_timeout=30s&include_type_name=true&timeout=30s], status line [HTTP/1.1 400 Bad Request]
          [junit] Warnings: [[types removal] Using include_type_name in create index requests is deprecated. The parameter will be removed in the next major version.]
          [junit] {"error":{"root_cause":[{"type":"resource_already_exists_exception","reason":"index [liferay-0/zKExA75dRjOB1IUORWODmA] already exists","index_uuid":"zKExA75dRjOB1IUORWODmA","index":"liferay-0"}],"type":"resource_already_exists_exception","reason":"index [liferay-0/zKExA75dRjOB1IUORWODmA] already exists","index_uuid":"zKExA75dRjOB1IUORWODmA","index":"liferay-0"},"status":400}
          [junit] 		at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:302)
          [junit] 		at org.elasticsearch.client.RestClient.performRequest(RestClient.java:272)
          [junit] 		at org.elasticsearch.client.RestClient.performRequest(RestClient.java:246)
          [junit] 		at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1613)
          [junit] 		... 31 more
          [junit] 2021-03-10 14:46:12.628 I

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              brooke.dalton Brooke Dalton
              Participants of an Issue:
              Recent user:
              Tibor Lipusz
              Engineering Assignee:
              Tibor Lipusz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                4 weeks, 1 day ago
                Development End Date:
                Development Start Date:

                  Packages

                  Version Package