jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christan Keller (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCR-3225) ConcurrentModificationException in QueryStatImpl
Date Thu, 02 Feb 2012 16:52:52 GMT
ConcurrentModificationException in QueryStatImpl

                 Key: JCR-3225
                 URL: https://issues.apache.org/jira/browse/JCR-3225
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-core
    Affects Versions: 2.3.7, 2.3.6
            Reporter: Christan Keller

Running with qurystats enabled the Query#execute can throw ConcurrentModificationException

caused by the iterator which backing collection is changed from another thread

see logQuery method
        Iterator<QueryStatDtoImpl> iterator = popularQueries.iterator();
        while (iterator.hasNext()) {
-->            QueryStatDtoImpl qsdi = iterator.next();
            if (qsdi.equals(qs)) {
                qs.setOccurrenceCount(qsdi.getOccurrenceCount() + 1);

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message