You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Ivan Fedenkov (Jira)" <ji...@apache.org> on 2020/04/03 17:58:00 UTC
[jira] [Created] (LUCENE-9305) Sometimes
ConcurrentModificationException occurs in QueryNodeImpl.set
Ivan Fedenkov created LUCENE-9305:
-------------------------------------
Summary: 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
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org