-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Causal Consistency, Docs Examples
-
None
The "Causal Consistency Example 2" in examples.go (see here) seems to not work correctly. Specifically, the example creates session2 and sets operation and cluster time on that session, but then calls UseSessionWithOptions and uses that SessionContext to actually run the operations. There seems to be no relationship between those sessions, so it seems like the example doesn't actually use a causally consistent session and would be misleading to anyone who reads it. Additionally, it's not clear if that example in examples.go is actually used in any documentation. It would be much more useful if it was part of a testable example.
Definition of done:
- Correct the causal consistency example(s) in examples.go.
- Test that the causal consistency example(s) actually create causal consistency within and between sessions.
- Add a causal consistency testable example to the Session documentation.
- related to
-
GODRIVER-2915 hasEnded() Method on Session
- Closed