org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed

GitHub | clintongormley | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 20550#248249107

    GitHub | 6 months ago | clintongormley
    org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      While loop has no escape. at org.elasticsearch.painless.Executable$Script.compile(while (true) {} @ <inline script>:1) ~[?:?]

      at org.elasticsearch.painless.node.SWhile.analyze()
    2. org.elasticsearch.painless
      PainlessScriptEngineService$2.run
      1. org.elasticsearch.painless.node.SWhile.analyze(SWhile.java:74)[?:?]
      2. org.elasticsearch.painless.node.SSource.analyze(SSource.java:190)[?:?]
      3. org.elasticsearch.painless.node.SSource.analyze(SSource.java:162)[?:?]
      4. org.elasticsearch.painless.Compiler.compile(Compiler.java:104)[?:?]
      5. org.elasticsearch.painless.PainlessScriptEngineService$2.run(PainlessScriptEngineService.java:171)[?:?]
      6. org.elasticsearch.painless.PainlessScriptEngineService$2.run(PainlessScriptEngineService.java:168)[?:?]
      6 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)[?:1.8.0_73]
      1 frame
    4. org.elasticsearch.painless
      PainlessScriptEngineService.compile
      1. org.elasticsearch.painless.PainlessScriptEngineService.compile(PainlessScriptEngineService.java:168)[?:?]
      1 frame
    5. ElasticSearch
      AbstractRunnable.run
      1. org.elasticsearch.script.ScriptService.compileInternal(ScriptService.java:339)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      2. org.elasticsearch.script.ScriptService.compile(ScriptService.java:235)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      3. org.elasticsearch.script.ScriptService.search(ScriptService.java:490)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      4. org.elasticsearch.search.SearchService.parseSource(SearchService.java:738)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      5. org.elasticsearch.search.SearchService.createContext(SearchService.java:534)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      6. org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:501)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      7. org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:242)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      8. org.elasticsearch.action.search.SearchTransportService.lambda$registerRequestHandler$667(SearchTransportService.java:276)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      9. org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      10. org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      11. org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:548)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      12. org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:504)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      13. org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      14. org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:548)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      15. org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:504)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      16. org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)[elasticsearch-6.0.0-alpha1-SNAPSHOT.jar:6.0.0-alpha1-SNAPSHOT]
      16 frames