[
http://issues.apache.org/jira/browse/EXLBR-26?page=comments#action_12316037 ]
Kazimierz Pogoda commented on EXLBR-26:
---------------------------------------
This simple test always throws exception in my enviroment (it won't if number
of created resources is smaller).
public class ActiveMonitorTest {
public static void main(String[] args) throws Exception {
final int resourceNumber = 10000;
final ActiveMonitor monitor = new ActiveMonitor();
monitor.setFrequency(1);
monitor.start();
for (int i = 0; i < resourceNumber; i++) {
monitor.addResource(new FileResource("/tmp/" + i));
}
}
}
> org.apache.avalon.excalibur.monitor.impl.ActiveMonitor is not thread safe
> -------------------------------------------------------------------------
>
> Key: EXLBR-26
> URL: http://issues.apache.org/jira/browse/EXLBR-26
> Project: Excalibur Components
> Type: Bug
> Components: Monitor
> Versions: 1.0.2
> Environment: Linux 2.6.11 + jdk5.0
> Reporter: Kazimierz Pogoda
>
> getResources() method of the AbstractMonitor should be probably synchronized
> on m_resources like the other methods in this class.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]