Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-544

Replica set monitoring threads do not always shut down when client is dropped

    XMLWordPrintable

    Details

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

      Description

      The logic for shutting down monitoring threads based on failure to upgrade the Weak reference to an Arc doesn't always work as intended when there are multiple monitoring threads (e.g. when connected to a multi-node replica set). Specifically, the monitoring threads can keep each other alive with their temporary strong references that are alive for the body of the monitoring loop.

        Attachments

          Activity

            People

            Assignee:
            sam.rossi Samuel Rossi (Inactive)
            Reporter:
            sam.rossi Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: