blob: f97c87810994b0afd99fa36e0bd3d0bf3c36bcdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# This suite tests the core transactions functionality with causal consistency enabled on the
# session. The purpose of this passthrough is to ensure that enabling causal consistency has no
# effect on core transactions functionality.
test_kind: js_test
selector:
roots:
- jstests/core/txns/**/*.js
exclude_files:
# The following tests are excluded because they do not use the transactions shell helpers.
- jstests/core/txns/non_transactional_operations_on_session_with_transaction.js
# These tests rely on having read concerns that don't use afterClusterTime.
- jstests/core/txns/timestamped_reads_wait_for_prepare_oplog_visibility.js
# These tests rely on reads that cannot use an afterClusterTime read concern because the read
# happens after a transaction is prepared, but before it is committed.
- jstests/core/txns/prepare_conflict_aggregation_behavior.js
exclude_with_any_tags:
- does_not_support_causal_consistency
# Transactions are not allowed to operate on capped collections.
- requires_capped
executor:
archive:
hooks:
- ValidateCollections
config:
shell_options:
eval: >-
var testingReplication = true;
load('jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js');
readMode: commands
hooks:
# We don't execute dbHash or oplog consistency checks since there is only a single replica set
# node.
- class: ValidateCollections
- class: CleanEveryN
n: 20
fixture:
class: ReplicaSetFixture
mongod_options:
set_parameters:
enableTestCommands: 1
# Use a 1-node replica set.
num_nodes: 1
|