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

Data race between creating a new connection and disconnecting topology

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      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

       

        1. stacktrace
          2 kB
          Divjot Arora

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

              Created:
              Updated:
              Resolved: