Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-9202

Registration of rules fails at startup if there are too many deactivation changes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6-M3, 6.6
    • Component/s: Rules
    • Labels:

      Description

      RegisterRules fails with the an ES query error such as the following when there is too many deactivation changes to index

      org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed
      	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:874)
      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:852)
      	at org.elasticsearch.transport.TransportService$4.onFailure(TransportService.java:389)
      	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)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: : maxClauseCount is set to 1024
      	at org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:386)
      	at org.elasticsearch.action.search.SearchPhaseExecutionException.guessRootCauses(SearchPhaseExecutionException.java:152)
      	at org.elasticsearch.action.search.SearchPhaseExecutionException.getCause(SearchPhaseExecutionException.java:99)
      	at org.elasticsearch.ElasticsearchException.writeTo(ElasticsearchException.java:226)
      	at org.elasticsearch.action.search.SearchPhaseExecutionException.writeTo(SearchPhaseExecutionException.java:64)
      	at org.elasticsearch.common.io.stream.StreamOutput.writeThrowable(StreamOutput.java:580)
      	at org.elasticsearch.ElasticsearchException.writeTo(ElasticsearchException.java:226)
      	at org.elasticsearch.transport.ActionTransportException.writeTo(ActionTransportException.java:64)
      	at org.elasticsearch.common.io.stream.StreamOutput.writeThrowable(StreamOutput.java:580)
      	at org.elasticsearch.transport.netty.NettyTransportChannel.sendResponse(NettyTransportChannel.java:136)
      	at org.elasticsearch.transport.DelegatingTransportChannel.sendResponse(DelegatingTransportChannel.java:68)
      	at org.elasticsearch.transport.RequestHandlerRegistry$TransportChannelWrapper.sendResponse(RequestHandlerRegistry.java:152)
      	at org.elasticsearch.action.support.HandledTransportAction$TransportHandler$1.onFailure(HandledTransportAction.java:82)
      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.raiseEarlyFailure(AbstractSearchAsyncAction.java:294)
      	... 10 common frames omitted
      Caused by: org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: too_many_clauses: maxClauseCount is set to 1024
      	at org.apache.lucene.search.BooleanQuery$Builder.add(BooleanQuery.java:137)
      	at org.elasticsearch.index.query.TermsQueryParser.parse(TermsQueryParser.java:200)
      	at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:250)
      	at org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:76)
      	at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:250)
      	at org.elasticsearch.index.query.IndexQueryParserService.innerParse(IndexQueryParserService.java:324)
      	at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:224)
      	at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:219)
      	at org.elasticsearch.search.query.QueryParseElement.parse(QueryParseElement.java:33)
      	at org.elasticsearch.search.SearchService.parseSource(SearchService.java:856)
      	at org.elasticsearch.search.SearchService.createContext(SearchService.java:667)
      	at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:633)
      	at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:472)
      	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:77)
      	at org.elasticsearch.transport.TransportService$4.doRun(TransportService.java:378)
      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
      	... 3 common frames omitted
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              daniel.schwarz Daniel Schwarz (Inactive)
              Reporter:
              sebastien.lesaint Sebastien Lesaint
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: