Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1411

Data race between creating a new connection and disconnecting topology

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.3.0
    • None
    • None

    Description

      eric.daniels pointed out a data race that I've attached to this ticket. We should be able to get around this by storing c.nc as an atomic value and loading it atomically in pool.closeConnection. Eric pointed out that we might be able to write a test for this by having one goroutine open a connection and another goroutine close it.

      stacktrace

       

      Attachments

        Activity

          People

            isabella.siu@mongodb.com Isabella Siu (Inactive)
            divjot.arora@mongodb.com Divjot Arora
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: