[ https://issues.apache.org/jira/browse/LUCENE-9305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17074881#comment-17074881 ]
Mikhail Khludnev commented on LUCENE-9305: ------------------------------------------ Hi, [~fedenkov]. I suppose it's a topic for mailing list, not for jira. It seems like there's an ill query for a certain flexible query parser configuration (you haven't shared a particular usage detail). I've looked through code, it seems like CME might really happen in inaccurate node linking&changing. I can say that threads shouldn't be a case, since query parsing is single threaded most times. I can only advice to log that ill query to find a reproducer for that particular configuration. > Sometimes ConcurrentModificationException occurs in QueryNodeImpl.set > --------------------------------------------------------------------- > > Key: LUCENE-9305 > URL: https://issues.apache.org/jira/browse/LUCENE-9305 > Project: Lucene - Core > Issue Type: Bug > Components: core/queryparser > Affects Versions: 7.6 > Environment: Happens both on Windows and Linux, any sort of hardware > (we have about 30 installations in productions and it happens on each) > Reporter: Ivan Fedenkov > Priority: Major > > Hello. > Sometimes a ConcurrentModificationException occures in my application with > such a stacktrace: > {noformat} > java.util.ConcurrentModificationException: null > at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909) > at java.util.ArrayList$Itr.next(ArrayList.java:859) > at > org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl.set(QueryNodeImpl.java:104) > at > org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl.processChildren(QueryNodeProcessorImpl.java:137) > at > org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl.processIteration(QueryNodeProcessorImpl.java:96) > at > org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl.processChildren(QueryNodeProcessorImpl.java:124) > at > org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl.processIteration(QueryNodeProcessorImpl.java:96) > at > org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl.processChildren(QueryNodeProcessorImpl.java:124) > at > org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl.processIteration(QueryNodeProcessorImpl.java:96) > at > org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl.processChildren(QueryNodeProcessorImpl.java:124) > at > org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl.processIteration(QueryNodeProcessorImpl.java:96) > at > org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl.processChildren(QueryNodeProcessorImpl.java:124) > at > org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl.processIteration(QueryNodeProcessorImpl.java:96) > at > org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl.process(QueryNodeProcessorImpl.java:89) > at > org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorPipeline.process(QueryNodeProcessorPipeline.java:89) > at > org.apache.lucene.queryparser.flexible.core.QueryParserHelper.parse(QueryParserHelper.java:250) > at > org.apache.lucene.queryparser.flexible.standard.StandardQueryParser.parse(StandardQueryParser.java:158) > {noformat} > It happens very rare, I would say in 0.01% of all query parsing. > I tried to reproduce it with concurrent tests, by have no success. > My Lucene version is 7.6.0 > QueryNodeImpl.set(QueryNodeImpl.java:104) looks like this on my version > {noformat} > // reset parent value > for (QueryNode child : children) { > child.removeFromParent(); > } > {noformat} > Could I get any help, please? -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org