Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21128

Fix random ElasticSearch audit test failures

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.10
    • Component/s: Audit

      Description

      In some cases we get the following exception. This happens for instance on https://qa.nuxeo.org/jenkins/job/master/job/FT-nuxeo-master-cmis-cap-tomcat/405 when running CMIS tests.

      2016-11-19 12:38:32,155 ERROR [http-bio-0.0.0.0-8080-exec-3] [org.nuxeo.ecm.core.opencmis.bindings.DefaultErrorExtractor] all shards failed
      org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: all shards failed
      	at org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisServiceWrapper.createCmisException(NuxeoCmisServiceWrapper.java:65)
      	at org.apache.chemistry.opencmis.server.support.wrapper.ConformanceCmisServiceWrapper.getRepositoryInfos(ConformanceCmisServiceWrapper.java:555)
      	at org.apache.chemistry.opencmis.server.impl.atompub.RepositoryService$GetRepositories.serve(RepositoryService.java:72)
      	at org.apache.chemistry.opencmis.server.shared.Dispatcher.dispatch(Dispatcher.java:92)
      	at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.dispatch(CmisAtomPubServlet.java:283)
      Caused by: Failed to execute phase [query_fetch], all shards failed; shardFailures {[qWgS2AoNSZSJxfVOHQud6w][nuxeo-audit][0]: RemoteTransportException[[nuxeoNode][local[1]][indices:data/read/search[phase/query+fetch]]]; nested: SearchParseException[failed to parse search source [{"size":1,"query":{"bool":{"must":{"match_all":{}},"filter":[{"term":{"repositoryId":"default"}},{"terms":{"eventId":["documentCreated","documentModified","documentRemoved"]}}]}},"sort":[{"id":{"order":"desc"}}]}]]; nested: SearchParseException[No mapping found for [id] in order to sort on]; }
      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.onFirstPhaseResult(AbstractSearchAsyncAction.java:206)
      	at org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:152)
      	at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:46)
      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:855)
      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:833)
      	at org.elasticsearch.transport.TransportService$4.onFailure(TransportService.java:387)
      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	... 1 more
      Caused by: SearchParseException[No mapping found for [id] in order to sort on]
      	at org.elasticsearch.search.sort.SortParseElement.addSortField(SortParseElement.java:213)
      	at org.elasticsearch.search.sort.SortParseElement.addCompoundSortField(SortParseElement.java:187)
      	at org.elasticsearch.search.sort.SortParseElement.parse(SortParseElement.java:85)
      	at org.elasticsearch.search.SearchService.parseSource(SearchService.java:838)
      	at org.elasticsearch.search.SearchService.createContext(SearchService.java:654)
      	at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:620)
      	at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:463)
      	at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryFetchTransportHandler.messageReceived(SearchServiceTransportAction.java:392)
      	at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryFetchTransportHandler.messageReceived(SearchServiceTransportAction.java:389)
      	at org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33)
      	at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:75)
      	at org.elasticsearch.transport.TransportService$4.doRun(TransportService.java:376)
      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
      	... 3 more
      
      

        Attachments

        1. server.log
          721 kB
          Florent Guillaume

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: