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

Account users do not display after reindex

    Description

    Steps to reproduce:

    1. Add an account
    2. Add at least one account user
    3. Go to Control Panel > Configuration > Search
    4. Execute Reindex all search indexes
    5. Go to Control Panel > Accounts > Account Users

    Expected Results:
    Users are still listed

    Actual Results:
    No users were found displays until page is refreshed a few times

    2020-01-25 00:46:57.781 ERROR [http-nio-8080-exec-7][ElasticsearchIndexSearcher:169] java.lang.RuntimeException: org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[hiGsh8NkTJe4kMjyEHfDVw][liferay-20095][0]: RemoteTransportException[[hiGsh8N][127.0.0.1:9300][indices:data/read/search[phase/query]]]; nested: QueryShardException[No mapping found for [lastName_sortable] in order to sort on]; }
    java.lang.RuntimeException: org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[hiGsh8NkTJe4kMjyEHfDVw][liferay-20095][0]: RemoteTransportException[[hiGsh8N][127.0.0.1:9300][indices:data/read/search[phase/query]]]; nested: QueryShardException[No mapping found for [lastName_sortable] in order to sort on]; }
            at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:293)
            at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:133)
            at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:254)
            at org.elasticsearch.action.search.InitialSearchPhase.onShardFailure(InitialSearchPhase.java:101)
            at org.elasticsearch.action.search.InitialSearchPhase.access$100(InitialSearchPhase.java:48)
            at org.elasticsearch.action.search.InitialSearchPhase$2.lambda$onFailure$1(InitialSearchPhase.java:222)
            at org.elasticsearch.action.search.InitialSearchPhase.maybeFork(InitialSearchPhase.java:176)
            at org.elasticsearch.action.search.InitialSearchPhase.access$000(InitialSearchPhase.java:48)
            at org.elasticsearch.action.search.InitialSearchPhase$2.onFailure(InitialSearchPhase.java:222)
            at org.elasticsearch.action.search.SearchExecutionStatsCollector.onFailure(SearchExecutionStatsCollector.java:73)
            at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:51)
            at org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:464)
            at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1130)
            at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1247)
            at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1221)
            at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:66)
            at org.elasticsearch.action.support.HandledTransportAction$ChannelActionListener.onFailure(HandledTransportAction.java:112)
            at org.elasticsearch.search.SearchService$2.onFailure(SearchService.java:347)
            at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:341)
            at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:335)
            at org.elasticsearch.search.SearchService$4.doRun(SearchService.java:1082)
            at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:723)
            at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
            at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:41)
            at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
            at java.lang.Thread.run(Thread.java:748)
    

    Reproduced on:
    Tomcat 9.0.17 + MySQL 5.7
    Portal master GIT ID: c4d3094cea7b87db0d77a5ef9dc45f361a1428de

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            sharry.shi Sharry Shi
            Reporter:
            patricia.perez Patricia Perez
            Participants of an Issue:
            Recent user:
            Sharry Shi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              39 weeks, 4 days ago

                Packages

                Version Package
                Master