-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: 2.10.0
-
Component/s: None
-
None
-
Fully Compatible
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.