Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1438

Expose more precise session state

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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@mongodb.com Andreas Braun
            Reporter:
            andreas.braun@mongodb.com Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: