-
Type: New Feature
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
While investigating PHPLIB-528, I remembered that PHPC and PHPLIB cannot implement any of the session spec tests because libmongoc provides no API for discerning whether a session has been marked as dirty.
The Sessions spec doesn't talk about the relevance of this field for users, although I don't see any reason why it couldn't be exposed in a public API (at least in libmongoc for the benefit of other drivers).
Can we consider adding mongoc_client_session_is_dirty? I'm open to more contextual names (e.g. mongoc_client_session_will_be_discarded, mongoc_client_session_has_seen_error), but that's probably something better conveyed in documentation.
- is depended on by
-
PHPLIB-528 Add more sessions tests with more read and write commands
- Closed
- is duplicated by
-
CDRIVER-3874 Add a getter to expose whether a client session has been marked dirty
- Closed
- is related to
-
PHPC-1381 Discard ServerSessions involved in network errors
- Closed
- related to
-
PHPC-2003 Expose whether a client session is dirty
- Closed