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

[Elasticsearch 6] Unit tests: Failed to execute phase [fetch], Caused by: java.lang.IllegalArgumentException: script_lang not supported [painless]

    Details

      Description

      Many aggregation tests stopped working due to the use of painless as a script language in Elasticsearch 6 Connector:

      AXIS_VARIABLE=0,label_exp=!master #38027

      1. BucketScriptPipelineAggregationTest.testBucketScript {{Failed to execute phase [fetch],
        at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:296)
        at org.elasticsearch.action.search.FetchSearchPhase$1.onFailure(FetchSearchPhase.java:91)
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39)
        at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:41)
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:751)
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
        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: java.lang.IllegalArgumentException: script_lang not supported [painless]
        at org.elasticsearch.script.ScriptService.getEngine(ScriptService.java:245)
        at org.elasticsearch.script.ScriptService.compile(ScriptService.java:315)
        at org.elasticsearch.search.aggregations.pipeline.bucketscript.BucketScriptPipelineAggregator.reduce(BucketScriptPipelineAggregator.java:92)
        at org.elasticsearch.search.aggregations.InternalAggregation.reduce(InternalAggregation.java:138)
        at org.elasticsearch.search.aggregations.InternalAggregations.reduce(InternalAggregations.java:128)
        at org.elasticsearch.action.search.SearchPhaseController.reducedQueryPhase(...}}

      2. BucketSelectorPipelineAggregationTest.testBucketSelector {{Failed to execute phase [fetch],
        at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:296)
        at org.elasticsearch.action.search.FetchSearchPhase$1.onFailure(FetchSearchPhase.java:91)
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39)
        at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:41)
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:751)
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
        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: java.lang.IllegalArgumentException: script_lang not supported [painless]
        at org.elasticsearch.script.ScriptService.getEngine(ScriptService.java:245)
        at org.elasticsearch.script.ScriptService.compile(ScriptService.java:315)
        at org.elasticsearch.search.aggregations.pipeline.bucketselector.BucketSelectorPipelineAggregator.reduce(BucketSelectorPipelineAggregator.java:86)
        at org.elasticsearch.search.aggregations.InternalAggregation.reduce(InternalAggregation.java:138)
        at org.elasticsearch.search.aggregations.InternalAggregations.reduce(InternalAggregations.java:128)
        at org.elasticsearch.action.search.SearchPhaseController.reducedQuery...}}

      3. MovingFunctionPipelineAggregationTest.testMovingFunction {{Failed to execute phase [fetch],
        at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:296)
        at org.elasticsearch.action.search.FetchSearchPhase$1.onFailure(FetchSearchPhase.java:91)
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39)
        at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:41)
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:751)
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
        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: java.lang.IllegalArgumentException: script_lang not supported [painless]
        at org.elasticsearch.script.ScriptService.getEngine(ScriptService.java:245)
        at org.elasticsearch.script.ScriptService.compile(ScriptService.java:315)
        at org.elasticsearch.search.aggregations.pipeline.movfn.MovFnPipelineAggregator.reduce(MovFnPipelineAggregator.java:115)
        at org.elasticsearch.search.aggregations.InternalAggregation.reduce(InternalAggregation.java:138)
        at org.elasticsearch.search.aggregations.InternalAggregations.reduce(InternalAggregations.java:128)
        at org.elasticsearch.action.search.SearchPhaseController.reducedQueryPhase(SearchPhaseControlle...}}

        Attachments

          Activity

            People

            Assignee:
            andre.oliveira André Ricardo Barreto de Oliveira
            Reporter:
            adam.brandizzi Adam Brandizzi
            Engineering Assignee:
            André Ricardo Barreto de Oliveira
            Recent user:
            Annie Wu (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:
              Development End Date:
              Development Start Date:

                Packages

                Version Package