Background threads such as the Monitor cannot restart once stopped

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 2.11.0
    • Affects Version/s: 2.10.0
    • Component/s: None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      Threads that are stopped via a disconnect can't actually be restarted:

      > server.instance_variable_get(:@monitor).instance_variable_get(:@thread).alive?
      => true
      > server.disconnect!
      => true
      > server.reconnect!
      => true
      > server.instance_variable_get(:@monitor).instance_variable_get(:@thread).alive?
      => false
      > server.instance_variable_get(:@monitor).instance_variable_get(:@thread).alive?
      => false
      > server.instance_variable_get(:@monitor).instance_variable_get(:@thread).alive?
      => false
      

      https://github.com/mongodb/mongo-ruby-driver/pull/1534 should fix this.

            Assignee:
            Oleg Pudeyev (Inactive)
            Reporter:
            Jon Hyman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: