synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiranya Jayathilaka (JIRA)" <>
Subject [jira] Created: (SYNAPSE-661) ConcurrentModifucationException at StatisticsRecord
Date Wed, 09 Jun 2010 11:41:14 GMT
ConcurrentModifucationException at StatisticsRecord

                 Key: SYNAPSE-661
             Project: Synapse
          Issue Type: Bug
    Affects Versions: 1.2
            Reporter: Hiranya Jayathilaka
            Assignee: indika priyantha kumara
             Fix For: 2.0

When running load tests (concurrency level > 15) with statistics enabled, every now and
then, I get the following exception:

Exception in thread "Thread-20" java.util.ConcurrentModificationException
	at java.util.AbstractList$Itr.checkForComodification(
	at java.util.AbstractList$
	at org.apache.synapse.aspects.statistics.StatisticsRecord.getAllLogIds(
	at org.apache.synapse.aspects.statistics.view.SystemViewStrategy.determineView(

Here I also have some custom code which tries to get the latest stats from Synapse periodically.
When the custom code tries to access a StatisticsRecord, if it also gets updated, the above
error is thrown. I think we should use a more thread safe data structure in the StatisticsRecord
class, instead of an ArrayList.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message