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

Add causal consistent passthrough suite

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.7
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding 2017-05-08, Sharding 2017-05-29

      Description

      Add causal consistent passthrough test.
      run jsCore to mongos with setCausalConsistency(true)

      1. buildscripts/resomkelib/testing/fixtures/shardedcluster.py: add an c-tor option rs_num_nodes that if present should be passed to _new_shard and start a ReplicaSetFixture instead of standalone shard.
      2. add jstests/libs/override_methods/set_causal_consistent.js that may override Mongo or DB methods to set read_preference to secondary and calls

      this.getMongo().setCausalConsistency()
      

      3. add buildscripts/resmokeconfig/suites/causal_consistent_jscore_passthrough.yml file that is a based on sharded_collections_jscore_passthrough.yml
      that passes the rs_num_nodes=3 to the ShardedClusterFixture.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: