Uploaded image for project: 'snmp'
  1. snmp
  2. SNMP-2

ConcurrentModificationException warnings during walk, incomplete data retrieved

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • unspecified
    • None
    • General
    • 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)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            jon@ivydesign.com Jon Rosenberger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: