MongoServer.VerifyInstances modifies collection that is being iterated

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.4.2
    • Affects Version/s: 1.4.1
    • Component/s: None
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      The MongoServer.VerifyInstances iterates over the _instances member. Unfortunately, it occasionally calls RemoveInstance (when list is updated). This leads to _instances list to be updated and iteration to fail. I think snapshotting a list of instances with ToArray() call would be enough.

            Assignee:
            Craig Wilson
            Reporter:
            Aristarkh Zagorodnikov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: