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

Result Rankings does not follow the "log exceptions only" pattern

    Details

    • Fix Priority:
      4

      Description

      Result Rankings does not follow the "log exceptions only" pattern, so even with logExceptionsOnly="true", killing the search engine and performing a search results in the search widgets becoming temporarily unavailable.

      Steps to reproduce:

      1. Within osgi/configs set logExceptionsOnly="true" within the *ElasticsearchConfiguration.config file
        1. By default, logExceptionsOnly is already set to true if not configured in the osgi config file. This step is just included to be explicit and to account for cases where that property might have been set to false (e.g. any bundle downloaded from CI)
        2. The exact name of the config file depends on the version of Elasticsearch you are using
      2. Deploy the portal-search-tuning-rankings-web module in the bundle
        1. This module should already be included in DXP bundles built from ant all
      3. Set up a remote Elasticsearch server to connect to Portal
      4. Start Portal
      5. Create any indexable asset
      6. Shut down the Elasticsearch server
      7. Perform a search

      Expected result: No search results are returned and there are no errors on the page.

      Actual result: The search widgets are unavailable and exceptions are thrown in the console.

      Workaround: Blacklist the portal-search-tuning-rankings-web module before starting Portal.


       

      2020-01-07 20:07:50.125 ERROR [http-nio-8080-exec-2][render_portlet_jsp:77] null
      java.lang.RuntimeException: org.elasticsearch.client.transport.NoNodeAvailableException: NoNodeAvailableException[None of the configured nodes are available: [\{#transport#-1}{x9jlixjSQjy8__1zANa3pA}\{localhost}{127.0.0.1:9301}]]
       at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:349)
       at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:247)
       at org.elasticsearch.client.transport.TransportProxyClient.execute(TransportProxyClient.java:60)
       at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:382)
       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.search.SearchSearchRequestExecutorImpl.execute(SearchSearchRequestExecutorImpl.java:49)
       at com.liferay.portal.search.elasticsearch6.internal.search.engine.adapter.search.ElasticsearchSearchRequestExecutor.executeSearchRequest(ElasticsearchSearchRequestExecutor.java:59)
       at com.liferay.portal.search.engine.adapter.search.SearchSearchRequest.accept(SearchSearchRequest.java:41)
       at com.liferay.portal.search.engine.adapter.search.SearchSearchRequest.accept(SearchSearchRequest.java:34)
       at com.liferay.portal.search.elasticsearch6.internal.search.engine.adapter.ElasticsearchSearchEngineAdapterImpl.execute(ElasticsearchSearchEngineAdapterImpl.java:90)
       at com.liferay.portal.search.tuning.rankings.web.internal.index.RankingIndexReaderImpl.fetchByQueryStringOptional(RankingIndexReaderImpl.java:55)
       at com.liferay.portal.search.tuning.rankings.web.internal.searcher.RankingSearchRequestContributor.contribute(RankingSearchRequestContributor.java:49)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              bryan.engler Bryan Engler
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                1 year, 31 weeks, 2 days ago

                  Packages

                  Version Package