Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
unspecified
-
None
-
None
-
Operating System: All
Platform: All
-
3921
-
High
Description
Calls to snmpGet with input type GETWALK return partial results when the result set is large enough. The problem is only seen in queries that require a number of seconds to execute.
No error is returned, but results are incomplete. Caller has no way to know they are incomplete. Logs contain many stack traces logged as WARN, below.
Attached test case reproduces the problem consistently. It connects to a real server. Any server/oid combination returning a sizable result set should suffice to reproduce this issue.
[Timer-0] WARN org.opendaylight.snmp.plugin.internal.AsyncGetHandler - Error parsing response
java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:859)
at java.util.ArrayList$Itr.next(ArrayList.java:831)
at org.opendaylight.snmp.plugin.internal.AsyncGetHandler.setResult(AsyncGetHandler.java:125)
at org.opendaylight.snmp.plugin.internal.AsyncGetHandler.onResponse(AsyncGetHandler.java:113)
at org.snmp4j.Snmp$PendingRequest.run(Snmp.java:1721)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)