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

endSessions on shutdown can outlive tokio runtime

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.2.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Rust Drivers
    • Not Needed

      From https://github.com/mongodb/mongo-rust-driver/issues/1287, with 3.2.0 users have started seeing an error message pointing to Client::drop's use of spawn. Notably, this only seems to happen in test scenarios where Tokio runtimes and clients are being spun up and torn down repeatedly.

      My current theory is that this is a recurrence of the issue we've seen repeatedly where a drop impl can race the destruction of the Tokio runtime and sometimes lose.

            Assignee:
            abraham.egnor@mongodb.com Abraham Egnor
            Reporter:
            abraham.egnor@mongodb.com Abraham Egnor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: