[SNMP4J] possible concurrent modification exception in UsmUserTable?

Aaron Loyd dfl789 at yahoo.com
Fri Aug 19 01:51:51 CEST 2011


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.




More information about the SNMP4J mailing list