Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3206

Fix connection pool race condition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11.0
    • Component/s: Connection Management
    • Labels:
      None

      Description

      There is a race condition in the DefaultConnectionPool class between the maintenance task thread and the constructor for the class. The race can be fixed by deferring starting the maintenance task thread to a start method that's called immediately after the constructor completes, which will ensure that all final fields of the class are published (in the JVM memory model sense of the word)

        Attachments

          Activity

            People

            Assignee:
            jeff.yemin Jeffrey Yemin
            Reporter:
            jeff.yemin Jeffrey Yemin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: