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

Data race between creating a new connection and disconnecting topology

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              Created:
              Updated:
              Resolved: