[
https://issues.apache.org/jira/browse/JCR-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcel Reutegger updated JCR-2242:
----------------------------------
Attachment: JCR-2242.patch
Proposed patch.
> Unsynchronized access to MultiIndex#indexes
> -------------------------------------------
>
> Key: JCR-2242
> URL: https://issues.apache.org/jira/browse/JCR-2242
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-core
> Reporter: Marcel Reutegger
> Priority: Minor
> Attachments: JCR-2242.patch
>
>
> This may result in a concurrent modification exception:
> java.util.ConcurrentModificationException
> at
> java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
> at java.util.AbstractList$Itr.next(AbstractList.java:343)
> at
> org.apache.jackrabbit.core.query.lucene.MultiIndex.getIndexReader(MultiIndex.java:744)
> at
> org.apache.jackrabbit.core.query.lucene.MultiIndex.getIndexReader(MultiIndex.java:712)
> at
> org.apache.jackrabbit.core.query.lucene.SearchIndex.getIndexReader(SearchIndex.java:1024)
> at
> org.apache.jackrabbit.core.query.lucene.SearchIndex.executeQuery(SearchIndex.java:820)
> at
> org.apache.jackrabbit.core.query.lucene.SingleColumnQueryResult.executeQuery(SingleColumnQueryResult.java:78)
> at
> org.apache.jackrabbit.core.query.lucene.QueryResultImpl.getResults(QueryResultImpl.java:293)
> at
> org.apache.jackrabbit.core.query.lucene.SingleColumnQueryResult.<init>(SingleColumnQueryResult.java:70)
> at
> org.apache.jackrabbit.core.query.lucene.QueryImpl.execute(QueryImpl.java:132)
> at
> org.apache.jackrabbit.core.query.QueryImpl.execute(QueryImpl.java:127)
> This is usually very unlikely but with the recent changes to our tests, index
> flushes are very frequent and may cause the above exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.