[SNMP4J] possible concurrent modification exception in UsmUserTable?

Frank Fock fock at agentpp.com
Tue Aug 23 00:08:43 CEST 2011


Hi,

I do not see where there is an Iterator involved.
Do you have a stack trace?

Best regards,
Frank

On 19.08.2011 01:51, Aaron Loyd wrote:
>
> The UsmUserTable class uses the not thread safe TreeMap.  It seems that if one
> thread were to do snmp.getUSM().addUser() while another thread were doing
> getUser() the iterator would throw a ConcurrentModificationException.
>
> We see that if we run two or more threads to do SNMPv3 queries, sometimes one or
> more of the queries will simply time out and not return any data but sometimes
> succeed.
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list