Expose more precise session state

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      For the assertSessionTransactionState operation in transaction spec tests the session's internal state must be exposed, which is not currently exposed. Instead, the MongoDB\Driver\Session::isInTransaction method exposes a boolean to indicate whether a session is currently in progress (as denoted by the in_progress and starting states. To cover all cases of the test operation, it may be necessary to expose the internal transaction state to the outside world.

      Note that this requires upstream changes in libmongoc as the internal state is not exposed there either.

            Assignee:
            Andreas Braun
            Reporter:
            Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: