java.lang.StackOverflowError: null

elasticsearch version : 6.7.1

[search][T#65]], exiting
java.lang.StackOverflowError: null
	at java.util.stream.StreamOpFlag.fromCharacteristics(StreamOpFlag.java:733) ~[?:1.8.0_201]
	at java.util.stream.StreamSupport.stream(StreamSupport.java:70) ~[?:1.8.0_201]
	at java.util.Collection.stream(Collection.java:581) ~[?:1.8.0_201]
	at org.apache.lucene.search.Boolean2ScorerSupplier.computeCost(Boolean2ScorerSupplier.java:62) ~[lucene-core-7.7.0.jar:7.7.0 8c831daf4eb41153c25ddb152501ab5bae3ea3d5 - jimczi - 2019-02-04 23:16:28]
	at org.apache.lucene.search.Boolean2ScorerSupplier.cost(Boolean2ScorerSupplier.java:80) ~[lucene-core-7.7.0.jar:7.7.0 8c831daf4eb41153c25ddb152501ab5bae3ea3d5 - jimczi - 2019-02-04 23:16:28]
	at java.util.stream.ReferencePipeline$5$1.accept(ReferencePipeline.java:227) ~[?:1.8.0_201]
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_201]
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_201]
	at java.util.stream.ForEachOps$ForEachOp$OfLong.evaluateSequential(ForEachOps.java:210) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_201]
	at java.util.stream.LongPipeline.forEach(LongPipeline.java:385) ~[?:1.8.0_201]
	at org.apache.lucene.search.MinShouldMatchSumScorer.cost(MinShouldMatchSumScorer.java:71) ~[lucene-core-7.7.0.jar:7.7.0 8c831daf4eb41153c25ddb152501ab5bae3ea3d5 - jimczi - 2019-02-04 23:16:28]
	at org.apache.lucene.search.Boolean2ScorerSupplier.computeCost(Boolean2ScorerSupplier.java:70) ~[lucene-core-7.7.0.jar:7.7.0 8c831daf4eb41153c25ddb152501ab5bae3ea3d5 - jimczi - 2019-02-04 23:16:28]
	at org.apache.lucene.search.Boolean2ScorerSupplier.cost(Boolean2ScorerSupplier.java:80) ~[lucene-core-7.7.0.jar:7.7.0 8c831daf4eb41153c25ddb152501ab5bae3ea3d5 - jimczi - 2019-02-04 23:16:28]
	at java.util.stream.ReferencePipeline$5$1.accept(ReferencePipeline.java:227) ~[?:1.8.0_201]
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_201]
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_201]
	at java.util.stream.ForEachOps$ForEachOp$OfLong.evaluateSequential(ForEachOps.java:210) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_201]
	at java.util.stream.LongPipeline.forEach(LongPipeline.java:385) ~[?:1.8.0_201]
	at org.apache.lucene.search.MinShouldMatchSumScorer.cost(MinShouldMatchSumScorer.java:71) ~[lucene-core-7.7.0.jar:7.7.0 8c831daf4eb41153c25ddb152501ab5bae3ea3d5 - jimczi - 2019-02-04 23:16:28]
	at org.apache.lucene.search.Boolean2ScorerSupplier.computeCost(Boolean2ScorerSupplier.java:70) ~[lucene-core-7.7.0.jar:7.7.0 8c831daf4eb41153c25ddb152501ab5bae3ea3d5 - jimczi - 2019-02-04 23:16:28]
	at org.apache.lucene.search.Boolean2ScorerSupplier.cost(Boolean2ScorerSupplier.java:80) ~[lucene-core-7.7.0.jar:7.7.0 8c831daf4eb41153c25ddb152501ab5bae3ea3d5 - jimczi - 2019-02-04 23:16:28]
	at java.util.stream.ReferencePipeline$5$1.accept(ReferencePipeline.java:227) ~[?:1.8.0_201]
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_201]
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_201]
	at java.util.stream.ForEachOps$ForEachOp$OfLong.evaluateSequential(ForEachOps.java:210) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_201]
	at java.util.stream.LongPipeline.forEach(LongPipeline.java:385) ~[?:1.8.0_201]
	at org.apache.lucene.search.MinShouldMatchSumScorer.cost(MinShouldMatchSumScorer.java:71) ~[lucene-core-7.7.0.jar:7.7.0 8c831daf4eb41153c25ddb152501ab5bae3ea3d5 - jimczi - 2019-02-04 23:16:28]
	at org.apache.lucene.search.Boolean2ScorerSupplier.computeCost(Boolean2ScorerSupplier.java:70) ~[lucene-core-7.7.0.jar:7.7.0 8c831daf4eb41153c25ddb152501ab5bae3ea3d5 - jimczi - 2019-02-04 23:16:28]
	at org.apache.lucene.search.Boolean2ScorerSupplier.cost(Boolean2ScorerSupplier.java:80) ~[lucene-core-7.7.0.jar:7.7.0 8c831daf4eb41153c25ddb152501ab5bae3ea3d5 - jimczi - 2019-02-04 23:16:28]
	at java.util.stream.ReferencePipeline$5$1.accept(ReferencePipeline.java:227) ~[?:1.8.0_201]
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_201]
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_201]
	at java.util.stream.ForEachOps$ForEachOp$OfLong.evaluateSequential(ForEachOps.java:210) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_201]
	at java.util.stream.LongPipeline.forEach(LongPipeline.java:385) ~[?:1.8.0_201]

It's not clear what you are asking here. Are you posting a log or looking for help?
Is that all that is in the log, because it looks incomplete?

hi @warkolm
thanks for your replay.

An ES user used a 64-layer bool-shold-wilcard statement to request es, causing my ES cluster to exit unexpectedly,The failure log is as I posted it.The query statement is as follows:

 {
                    "bool":{
                        "should":[
                            {
                                "wildcard":{
                                    "id":{
                                        "wildcard":10000000000000000007
                                    }
                                }
                            },
                            {
                                "bool":{
                                    "should":[
                                        {
                                            "wildcard":{
                                                "id":{
                                                    "wildcard":10000000000000000008
                                                }
                                            }
                                        }, {
                                            "bool":{
                                                "should":[
                                                    {
                                                        "wildcard":{ ...

I would like to know if there is any way for ES to quickly block this query statement?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.