|
| 1 | +test_kind: js_test |
| 2 | + |
| 3 | +selector: |
| 4 | + roots: |
| 5 | + - jstests/core/**/*.js |
| 6 | + exclude_files: |
| 7 | + # Operations within a transaction do not support write concern. |
| 8 | + - jstests/core/txns/**/*.js |
| 9 | + # These tests are not expected to pass with replica-sets: |
| 10 | + - jstests/core/dbadmin.js |
| 11 | + - jstests/core/opcounters_write_cmd.js |
| 12 | + - jstests/core/read_after_optime.js |
| 13 | + - jstests/core/capped_update.js |
| 14 | + # These tests attempt to read from the "system.profile" collection, which may be missing entries |
| 15 | + # if a write was performed on the primary of the replica set instead. |
| 16 | + - jstests/core/*profile*.js |
| 17 | + # Two cursors can be established on different secondaries, so the count of |
| 18 | + # $listLocalCursors will not always be 2. |
| 19 | + - jstests/core/list_all_local_cursors.js |
| 20 | + |
| 21 | + # Tests that fail for Causal Consistency with default injected readPreference 'secondary' |
| 22 | + # "TODO SERVER-30384: These tests assume that documents are returned in the same order they are |
| 23 | + # written when no sort is specified; however, the order of documents within a collection can |
| 24 | + # be different across a primary and secondary." |
| 25 | + - jstests/core/coveredIndex1.js |
| 26 | + - jstests/core/distinct1.js |
| 27 | + - jstests/core/elemMatchProjection.js |
| 28 | + - jstests/core/find4.js |
| 29 | + - jstests/core/find5.js |
| 30 | + - jstests/core/fts1.js |
| 31 | + - jstests/core/find_dedup.js |
| 32 | + - jstests/core/fts_spanish.js |
| 33 | + - jstests/core/geo_distinct.js |
| 34 | + - jstests/core/geo_s2ordering.js |
| 35 | + - jstests/core/group1.js |
| 36 | + - jstests/core/group2.js |
| 37 | + - jstests/core/maxscan.js |
| 38 | + - jstests/core/nan.js |
| 39 | + - jstests/core/null2.js |
| 40 | + - jstests/core/not2.js |
| 41 | + - jstests/core/sorta.js |
| 42 | + - jstests/core/sortc.js |
| 43 | + - jstests/core/sort3.js |
| 44 | + - jstests/core/sort4.js |
| 45 | + - jstests/core/ord.js |
| 46 | + # Parallel shell is not causally consistent |
| 47 | + - jstests/core/cursora.js |
| 48 | + - jstests/core/find_and_modify_concurrent_update.js |
| 49 | + - jstests/core/shellstartparallel.js |
| 50 | + - jstests/core/loadserverscripts.js |
| 51 | + # getMore is not causal consistent because afterClusterTime has been specified |
| 52 | + # by the preceding find command which establishes the cursor. Therefore, |
| 53 | + # getMore cannot be guaranteed to get executed after commands in between find |
| 54 | + # and getMore. |
| 55 | + - jstests/core/drop3.js |
| 56 | + - jstests/core/ord.js |
| 57 | + - jstests/core/tailable_cursor_invalidation.js |
| 58 | + - jstests/core/tailable_skip_limit.js |
| 59 | + # doTxn uses a different session so the operationTime of the default session |
| 60 | + # will not be advanced by doTxn. Therefore, operations in the default |
| 61 | + # session cannot be guaranteed to get executed after doTxn. |
| 62 | + - jstests/core/bypass_doc_validation.js |
| 63 | + - jstests/core/collation.js |
| 64 | + |
| 65 | + exclude_with_any_tags: |
| 66 | + ## |
| 67 | + # The next three tags correspond to the special errors thrown by the |
| 68 | + # set_read_and_write_concerns.js override when it refuses to replace the readConcern or |
| 69 | + # writeConcern of a particular command. Above each tag are the message(s) that cause the tag to be |
| 70 | + # warranted. |
| 71 | + ## |
| 72 | + # "Cowardly refusing to override read concern of command: ..." |
| 73 | + - assumes_read_concern_unchanged |
| 74 | + # "Cowardly refusing to override write concern of command: ..." |
| 75 | + - assumes_write_concern_unchanged |
| 76 | + # "Cowardly refusing to run test with overridden write concern when it uses a command that can |
| 77 | + # only perform w=1 writes: ..." |
| 78 | + - requires_eval_command |
| 79 | + ## |
| 80 | + # The next tag corresponds to the special error thrown by the set_read_preference_secondary.js |
| 81 | + # override when it refuses to replace the readPreference of a particular command. Above each tag |
| 82 | + # are the message(s) that cause the tag to be warranted. |
| 83 | + ## |
| 84 | + # "Cowardly refusing to override read preference of command: ..." |
| 85 | + # "Cowardly refusing to run test with overridden read preference when it reads from a |
| 86 | + # non-replicated collection: ..." |
| 87 | + - assumes_read_preference_unchanged |
| 88 | + ## |
| 89 | + # collStats and dbStats are not causally consistent |
| 90 | + - requires_collstats |
| 91 | + - requires_dbstats |
| 92 | + |
| 93 | +executor: |
| 94 | + archive: |
| 95 | + hooks: |
| 96 | + - CheckReplDBHash |
| 97 | + - CheckReplOplogs |
| 98 | + - ValidateCollections |
| 99 | + config: |
| 100 | + shell_options: |
| 101 | + global_vars: |
| 102 | + TestData: |
| 103 | + defaultReadConcernLevel: local |
| 104 | + defaultWriteConcern: {w: 1} |
| 105 | + eval: >- |
| 106 | + testingReplication = true; |
| 107 | + load('jstests/libs/override_methods/set_read_and_write_concerns.js'); |
| 108 | + load('jstests/libs/override_methods/set_read_preference_secondary.js'); |
| 109 | + load('jstests/libs/override_methods/enable_causal_consistency.js'); |
| 110 | + readMode: commands |
| 111 | + hooks: |
| 112 | + # The CheckReplDBHash hook waits until all operations have replicated to and have been applied |
| 113 | + # on the secondaries, so we run the ValidateCollections hook after it to ensure we're |
| 114 | + # validating the entire contents of the collection. |
| 115 | + - class: CheckReplOplogs |
| 116 | + - class: CheckReplDBHash |
| 117 | + - class: ValidateCollections |
| 118 | + - class: CleanEveryN |
| 119 | + n: 20 |
| 120 | + fixture: |
| 121 | + class: ReplicaSetFixture |
| 122 | + mongod_options: |
| 123 | + set_parameters: |
| 124 | + enableTestCommands: 1 |
| 125 | + numInitialSyncAttempts: 1 |
| 126 | + num_nodes: 5 |
| 127 | + # We give each of the nodes a vote in a 5-node replica set so that the |
| 128 | + # secondaries have different beliefs about the majority commit point |
| 129 | + # relative to the cluster's majority commit point. |
| 130 | + voting_secondaries: true |
| 131 | + use_replica_set_connection_string: true |
0 commit comments