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

Failed to execute phase [query] during TermsSetQueryTest

    Details

    • Fix Priority:
      3

      Description

           [exec] com.liferay.portal.search.elasticsearch6.internal.query.TermsSetQueryTest > testTermsSetQueryWithScript FAILED
           [exec]     Failed to execute phase [query], all shards failed; shardFailures {[1bV6ZcE-R9ax5hLthtCzNg][2411573324714984247][0]: RemoteTransportException[[1bV6ZcE][127.0.0.1:9300][indices:data/read/search[phase/query]]]; nested: QueryShardException[failed to create query: {
           [exec]       "bool" : {
           [exec]         "must" : [
           [exec]           {
           [exec]             "terms_set" : {
           [exec]               "userName" : {
           [exec]                 "terms" : [
           [exec]                   "alpha"
           [exec]                 ],
           [exec]                 "minimum_should_match_script" : {
           [exec]                   "source" : "Math.min(params.num_terms, doc['priority'].value)",
           [exec]                   "lang" : "painless"
           [exec]                 },
           [exec]                 "boost" : 1.0
           [exec]               }
           [exec]             }
           [exec]           },
           [exec]           {
           [exec]             "bool" : {
           [exec]               "must" : [
           [exec]                 {
           [exec]                   "term" : {
           [exec]                     "entryClassName" : {
           [exec]                       "value" : "termssetquerytest.testtermssetquerywithscript",
           [exec]                       "boost" : 1.0
           [exec]                     }
           [exec]                   }
           [exec]                 },
           [exec]                 {
           [exec]                   "term" : {
           [exec]                     "companyId" : {
           [exec]                       "value" : "2411573324714984247",
           [exec]                       "boost" : 1.0
           [exec]                     }
           [exec]                   }
           [exec]                 }
           [exec]               ],
           [exec]               "adjust_pure_negative" : true,
           [exec]               "boost" : 1.0
           [exec]             }
           [exec]           }
           [exec]         ],
           [exec]         "adjust_pure_negative" : true,
           [exec]         "boost" : 1.0
           [exec]       }
           [exec]     }]; nested: GeneralScriptException[Failed to compile inline script [Math.min(params.num_terms, doc['priority'].value)] using lang [painless]]; nested: IllegalArgumentException; }
           [exec]         at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:296)
           [exec]         at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:133)
           [exec]         at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:259)
           [exec]         at org.elasticsearch.action.search.InitialSearchPhase.onShardFailure(InitialSearchPhase.java:100)
           [exec]         at org.elasticsearch.action.search.InitialSearchPhase.access$100(InitialSearchPhase.java:48)
           [exec]         at org.elasticsearch.action.search.InitialSearchPhase$2.lambda$onFailure$1(InitialSearchPhase.java:220)
           [exec]         at org.elasticsearch.action.search.InitialSearchPhase.maybeFork(InitialSearchPhase.java:174)
           [exec]         at org.elasticsearch.action.search.InitialSearchPhase.access$000(InitialSearchPhase.java:48)
           [exec]         at org.elasticsearch.action.search.InitialSearchPhase$2.onFailure(InitialSearchPhase.java:220)
           [exec]         at org.elasticsearch.action.search.SearchExecutionStatsCollector.onFailure(SearchExecutionStatsCollector.java:73)
           [exec]         at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:59)
           [exec]         at org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:463)
           [exec]         at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1126)
           [exec]         at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1238)
           [exec]         at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1212)
           [exec]         at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:60)
           [exec]         at org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:56)
           [exec]         at org.elasticsearch.search.SearchService$2.onFailure(SearchService.java:367)
           [exec]         at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:361)
           [exec]         at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:355)
           [exec]         at org.elasticsearch.search.SearchService$4.doRun(SearchService.java:1117)
           [exec]         at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
           [exec]         at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:41)
           [exec]         at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:778)
           [exec]         at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
           [exec]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
           [exec]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           [exec]         at java.lang.Thread.run(Thread.java:745)
           [exec] 
           [exec]         Caused by:
           [exec]         GeneralScriptException[Failed to compile inline script [Math.min(params.num_terms, doc['priority'].value)] using lang [painless]]; nested: IllegalArgumentException;
           [exec]             at org.elasticsearch.script.ScriptService.compile(ScriptService.java:368)
           [exec]             at org.elasticsearch.index.query.TermsSetQueryBuilder.createValuesSource(TermsSetQueryBuilder.java:265)
           [exec]             at org.elasticsearch.index.query.TermsSetQueryBuilder.doToQuery(TermsSetQueryBuilder.java:234)
           [exec]             at org.elasticsearch.index.query.AbstractQueryBuilder.toQuery(AbstractQueryBuilder.java:106)
           [exec]             at org.elasticsearch.index.query.BoolQueryBuilder.addBooleanClauses(BoolQueryBuilder.java:415)
           [exec]             at org.elasticsearch.index.query.BoolQueryBuilder.doToQuery(BoolQueryBuilder.java:383)
           [exec]             at org.elasticsearch.index.query.AbstractQueryBuilder.toQuery(AbstractQueryBuilder.java:106)
           [exec]             at org.elasticsearch.index.query.QueryShardContext.lambda$toQuery$2(QueryShardContext.java:319)
           [exec]             at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:331)
           [exec]             at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:318)
           [exec]             at org.elasticsearch.search.SearchService.parseSource(SearchService.java:801)
           [exec]             at org.elasticsearch.search.SearchService.createContext(SearchService.java:648)
           [exec]             at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:599)
           [exec]             at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:387)
           [exec]             at org.elasticsearch.search.SearchService.access$100(SearchService.java:126)
           [exec]             at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:359)
           [exec]             ... 9 more
           [exec] 
           [exec]             Caused by:
           [exec]             java.lang.IllegalArgumentException
           [exec]                 at org.objectweb.asm.Type.getTypeInternal(Type.java:429)
           [exec]                 at org.objectweb.asm.Type.getType(Type.java:177)
           [exec]                 at org.elasticsearch.painless.PainlessScriptEngine.generateStatefulFactory(PainlessScriptEngine.java:227)
           [exec]                 at org.elasticsearch.painless.PainlessScriptEngine.compile(PainlessScriptEngine.java:170)
           [exec]                 at org.elasticsearch.script.ScriptService.compile(ScriptService.java:363)
           [exec]                 ... 24 more

      Testray
      Jenkins Console

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              brian.lee Brian Lee
              Participants of an Issue:
              Recent user:
              Brian Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                15 weeks, 2 days ago

                  Packages

                  Version Package