MasterSlaveConnection.in_request() and MongoReplicaSetClient.in_request() are wrong if multithreaded

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 2.4.2
    • Affects Version/s: 2.3
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Repro:

      Create MasterSlaveConnection or MongoReplicaSetClient with auto_start_request=False. Thread A calls start_request(). Thread B calls in_request().

      Expected: in_request() is False for thread B

      Actual: in_request() is True for thread B, but thread B is not actually in a request (it doesn't have a reserved socket on master / primary)

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: