Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-449

MongoServer.VerifyInstances modifies collection that is being iterated

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.4.2
    • 1.4.1
    • None
    • None
    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

            craig.wilson@mongodb.com Craig Wilson
            onyxmaster Aristarkh Zagorodnikov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: