Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-81109

Fix internal_transactions_sharded_from_mongod.js's handling of causal consistency across sessions

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Security
    • Security 2024-06-24, Security 2024-07-22
    • 200

      internal_transactions_sharded_from_mongod.js uses different sessions within the same FSM thread, and its logic requires read-your-own-writes guarantees even across different sessions.
      The way the test implements is flawed and does not conform to the specifications.

      Therefore, verifyDocuments should use a causal consistent session and call 'advanceClusterTime(max cluster time of this.sessions)' and advanceOperationTime(max operation time of this.sessions). The bumpClusterTime should then be removed altogether.

            niaz.pavel@mongodb.com Niaz Pavel
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            0 Vote for this issue
            1 Start watching this issue