mongo 2.11.0.rc0 → 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/Rakefile +2 -0
  5. data/lib/mongo/auth.rb +11 -2
  6. data/lib/mongo/auth/cr/conversation.rb +1 -1
  7. data/lib/mongo/auth/ldap/conversation.rb +1 -1
  8. data/lib/mongo/auth/scram/conversation.rb +4 -1
  9. data/lib/mongo/auth/user.rb +15 -1
  10. data/lib/mongo/auth/user/view.rb +10 -4
  11. data/lib/mongo/auth/x509.rb +11 -1
  12. data/lib/mongo/auth/x509/conversation.rb +15 -6
  13. data/lib/mongo/background_thread.rb +28 -13
  14. data/lib/mongo/client.rb +23 -15
  15. data/lib/mongo/collection/view/change_stream.rb +5 -1
  16. data/lib/mongo/collection/view/readable.rb +5 -2
  17. data/lib/mongo/collection/view/writable.rb +3 -1
  18. data/lib/mongo/cursor/builder/get_more_command.rb +4 -1
  19. data/lib/mongo/cursor/builder/kill_cursors_command.rb +16 -5
  20. data/lib/mongo/cursor/builder/op_get_more.rb +2 -2
  21. data/lib/mongo/cursor/builder/op_kill_cursors.rb +17 -5
  22. data/lib/mongo/error/operation_failure.rb +3 -3
  23. data/lib/mongo/monitoring/command_log_subscriber.rb +5 -3
  24. data/lib/mongo/monitoring/event/command_started.rb +13 -3
  25. data/lib/mongo/monitoring/publishable.rb +4 -2
  26. data/lib/mongo/operation/create_user/command.rb +1 -0
  27. data/lib/mongo/operation/remove_user/command.rb +1 -0
  28. data/lib/mongo/operation/update_user/command.rb +1 -0
  29. data/lib/mongo/protocol/get_more.rb +2 -1
  30. data/lib/mongo/protocol/kill_cursors.rb +6 -13
  31. data/lib/mongo/protocol/serializers.rb +10 -4
  32. data/lib/mongo/retryable.rb +1 -1
  33. data/lib/mongo/server/connection.rb +6 -2
  34. data/lib/mongo/server/connection_base.rb +2 -1
  35. data/lib/mongo/server/monitor.rb +1 -1
  36. data/lib/mongo/server/pending_connection.rb +6 -0
  37. data/lib/mongo/socket/ssl.rb +1 -1
  38. data/lib/mongo/uri.rb +5 -41
  39. data/lib/mongo/version.rb +1 -1
  40. data/mongo.gemspec +11 -2
  41. data/spec/README.md +105 -9
  42. data/spec/USERS.md +72 -0
  43. data/spec/integration/auth_spec.rb +20 -6
  44. data/spec/integration/client_construction_spec.rb +3 -1
  45. data/spec/integration/client_options_spec.rb +437 -0
  46. data/spec/integration/command_monitoring_spec.rb +4 -1
  47. data/spec/integration/connection_pool_populator_spec.rb +4 -0
  48. data/spec/integration/connection_spec.rb +4 -2
  49. data/spec/integration/cursor_reaping_spec.rb +1 -1
  50. data/spec/integration/get_more_spec.rb +32 -0
  51. data/spec/integration/retryable_errors_spec.rb +99 -0
  52. data/spec/integration/retryable_writes_errors_spec.rb +11 -10
  53. data/spec/lite_spec_helper.rb +2 -1
  54. data/spec/mongo/auth/scram_spec.rb +1 -0
  55. data/spec/mongo/auth/user/view_spec.rb +102 -1
  56. data/spec/mongo/auth/user_spec.rb +56 -15
  57. data/spec/mongo/auth/x509_spec.rb +31 -1
  58. data/spec/mongo/bulk_write_spec.rb +2 -2
  59. data/spec/mongo/collection/view/change_stream_spec.rb +2 -2
  60. data/spec/mongo/collection/view/readable_spec.rb +8 -4
  61. data/spec/mongo/cursor/builder/get_more_command_spec.rb +4 -2
  62. data/spec/mongo/cursor/builder/op_get_more_spec.rb +4 -2
  63. data/spec/mongo/cursor_spec.rb +3 -3
  64. data/spec/mongo/retryable_spec.rb +31 -52
  65. data/spec/mongo/server/connection_auth_spec.rb +3 -0
  66. data/spec/mongo/server/connection_pool_spec.rb +4 -0
  67. data/spec/mongo/server/connection_spec.rb +12 -4
  68. data/spec/mongo/server/monitor_spec.rb +19 -1
  69. data/spec/mongo/socket/ssl_spec.rb +1 -1
  70. data/spec/mongo/uri/srv_protocol_spec.rb +0 -13
  71. data/spec/mongo/uri_option_parsing_spec.rb +0 -8
  72. data/spec/mongo/uri_spec.rb +6 -20
  73. data/spec/runners/connection_string.rb +116 -0
  74. data/spec/runners/read_write_concern_document.rb +67 -0
  75. data/spec/spec_tests/change_streams_spec.rb +17 -2
  76. data/spec/spec_tests/connection_string_spec.rb +2 -59
  77. data/spec/spec_tests/data/change_streams/change-streams-errors.yml +3 -3
  78. data/spec/spec_tests/data/change_streams/change-streams.yml +88 -20
  79. data/spec/spec_tests/data/cmap/connection-must-have-id.yml +6 -0
  80. data/spec/spec_tests/data/cmap/connection-must-order-ids.yml +6 -0
  81. data/spec/spec_tests/data/cmap/pool-checkin-destroy-closed.yml +3 -0
  82. data/spec/spec_tests/data/cmap/pool-checkin-destroy-stale.yml +3 -0
  83. data/spec/spec_tests/data/cmap/pool-checkin-make-available.yml +3 -0
  84. data/spec/spec_tests/data/cmap/pool-checkin.yml +1 -0
  85. data/spec/spec_tests/data/cmap/pool-checkout-connection.yml +2 -0
  86. data/spec/spec_tests/data/cmap/pool-checkout-error-closed.yml +5 -0
  87. data/spec/spec_tests/data/cmap/pool-checkout-multiple.yml +3 -0
  88. data/spec/spec_tests/data/cmap/pool-checkout-no-idle.yml +4 -0
  89. data/spec/spec_tests/data/cmap/pool-checkout-no-stale.yml +4 -0
  90. data/spec/spec_tests/data/cmap/pool-close-destroy-conns.yml +2 -0
  91. data/spec/spec_tests/data/cmap/pool-create-max-size.yml +15 -0
  92. data/spec/spec_tests/data/cmap/pool-create-min-size.yml +4 -0
  93. data/spec/spec_tests/data/cmap/wait-queue-fairness.yml +31 -1
  94. data/spec/spec_tests/data/cmap/wait-queue-timeout.yml +5 -0
  95. data/spec/spec_tests/data/read_write_concern/connection-string/read-concern.yml +32 -0
  96. data/spec/spec_tests/data/read_write_concern/connection-string/write-concern.yml +82 -0
  97. data/spec/spec_tests/data/read_write_concern/document/read-concern.yml +37 -0
  98. data/spec/spec_tests/data/read_write_concern/document/write-concern.yml +100 -0
  99. data/spec/spec_tests/data/retryable_reads/aggregate-merge.yml +39 -0
  100. data/spec/spec_tests/data/retryable_reads/aggregate-serverErrors.yml +1 -1
  101. data/spec/spec_tests/data/retryable_reads/changeStreams-client.watch-serverErrors.yml +2 -2
  102. data/spec/spec_tests/data/retryable_reads/changeStreams-client.watch.yml +1 -1
  103. data/spec/spec_tests/data/retryable_reads/changeStreams-db.coll.watch-serverErrors.yml +2 -2
  104. data/spec/spec_tests/data/retryable_reads/changeStreams-db.coll.watch.yml +1 -1
  105. data/spec/spec_tests/data/retryable_reads/changeStreams-db.watch-serverErrors.yml +2 -2
  106. data/spec/spec_tests/data/retryable_reads/changeStreams-db.watch.yml +1 -1
  107. data/spec/spec_tests/data/retryable_reads/count-serverErrors.yml +1 -1
  108. data/spec/spec_tests/data/retryable_reads/countDocuments-serverErrors.yml +1 -1
  109. data/spec/spec_tests/data/retryable_reads/distinct-serverErrors.yml +1 -1
  110. data/spec/spec_tests/data/retryable_reads/estimatedDocumentCount-serverErrors.yml +1 -1
  111. data/spec/spec_tests/data/retryable_reads/find-serverErrors.yml +1 -1
  112. data/spec/spec_tests/data/retryable_reads/findOne-serverErrors.yml +1 -1
  113. data/spec/spec_tests/data/retryable_reads/gridfs-download-serverErrors.yml +1 -1
  114. data/spec/spec_tests/data/retryable_reads/gridfs-downloadByName-serverErrors.yml +1 -1
  115. data/spec/spec_tests/data/retryable_reads/listCollectionNames-serverErrors.yml +1 -1
  116. data/spec/spec_tests/data/retryable_reads/listCollectionObjects-serverErrors.yml +1 -1
  117. data/spec/spec_tests/data/retryable_reads/listCollections-serverErrors.yml +1 -1
  118. data/spec/spec_tests/data/retryable_reads/listDatabaseNames-serverErrors.yml +1 -1
  119. data/spec/spec_tests/data/retryable_reads/listDatabaseObjects-serverErrors.yml +1 -1
  120. data/spec/spec_tests/data/retryable_reads/listDatabases-serverErrors.yml +1 -1
  121. data/spec/spec_tests/data/retryable_reads/listIndexNames-serverErrors.yml +1 -1
  122. data/spec/spec_tests/data/retryable_reads/listIndexes-serverErrors.yml +1 -1
  123. data/spec/spec_tests/data/transactions/read-concern.yml +6 -6
  124. data/spec/spec_tests/data/transactions/transaction-options-repl.yml +117 -0
  125. data/spec/spec_tests/data/transactions/transaction-options.yml +14 -121
  126. data/spec/spec_tests/data/transactions/write-concern.yml +3 -0
  127. data/spec/spec_tests/data/transactions_api/transaction-options.yml +11 -12
  128. data/spec/spec_tests/dns_seedlist_discovery_spec.rb +17 -7
  129. data/spec/spec_tests/read_write_concern_connection_string_spec.rb +8 -0
  130. data/spec/spec_tests/read_write_concern_document_spec.rb +74 -0
  131. data/spec/spec_tests/retryable_reads_spec.rb +32 -1
  132. data/spec/spec_tests/uri_options_spec.rb +4 -2
  133. data/spec/support/auth.rb +5 -14
  134. data/spec/support/certificates/client-x509.crt +78 -0
  135. data/spec/support/certificates/client-x509.key +27 -0
  136. data/spec/support/certificates/client-x509.pem +105 -0
  137. data/spec/support/change_streams.rb +8 -11
  138. data/spec/support/client_registry.rb +26 -12
  139. data/spec/support/cluster_tools.rb +2 -2
  140. data/spec/support/cmap.rb +11 -7
  141. data/spec/support/command_monitoring.rb +8 -8
  142. data/spec/support/connection_string.rb +56 -28
  143. data/spec/support/constraints.rb +8 -0
  144. data/spec/support/crud/spec.rb +5 -8
  145. data/spec/support/event_subscriber.rb +7 -0
  146. data/spec/support/gridfs.rb +4 -7
  147. data/spec/support/server_discovery_and_monitoring.rb +3 -8
  148. data/spec/support/server_selection.rb +4 -9
  149. data/spec/support/server_selection_rtt.rb +4 -7
  150. data/spec/support/spec_config.rb +47 -19
  151. data/spec/support/spec_setup.rb +5 -0
  152. data/spec/support/utils.rb +46 -8
  153. metadata +637 -597
  154. metadata.gz.sig +0 -0
@@ -0,0 +1,37 @@
1
+ tests:
2
+ -
3
+ description: "Default"
4
+ valid: true
5
+ readConcern: {}
6
+ readConcernDocument: {}
7
+ isServerDefault: true
8
+ -
9
+ description: "Majority"
10
+ valid: true
11
+ readConcern: { level: "majority" }
12
+ readConcernDocument: { level: "majority" }
13
+ isServerDefault: false
14
+ -
15
+ description: "Local"
16
+ valid: true
17
+ readConcern: { level: "local" }
18
+ readConcernDocument: { level: "local" }
19
+ isServerDefault: false
20
+ -
21
+ description: "Linearizable"
22
+ valid: true
23
+ readConcern: { level: "linearizable" }
24
+ readConcernDocument: { level: "linearizable" }
25
+ isServerDefault: false
26
+ -
27
+ description: "Snapshot"
28
+ valid: true
29
+ readConcern: { level: "snapshot" }
30
+ readConcernDocument: {level: "snapshot" }
31
+ isServerDefault: false
32
+ -
33
+ description: "Available"
34
+ valid: true
35
+ readConcern: { level: "available" }
36
+ readConcernDocument: { level: "available" }
37
+ isServerDefault: false
@@ -0,0 +1,100 @@
1
+ tests:
2
+ -
3
+ description: "Default"
4
+ valid: true
5
+ writeConcern: {}
6
+ writeConcernDocument: {}
7
+ isServerDefault: true
8
+ isAcknowledged: true
9
+ -
10
+ description: "W as a number"
11
+ valid: true
12
+ writeConcern: { w: 3 }
13
+ writeConcernDocument: { w: 3 }
14
+ isServerDefault: false
15
+ isAcknowledged: true
16
+ -
17
+ description: "W as an invalid number"
18
+ valid: false
19
+ writeConcern: { w: -3 }
20
+ writeConcernDocument: ~
21
+ isServerDefault: ~
22
+ isAcknowledged: ~
23
+ -
24
+ description: "W as majority"
25
+ valid: true
26
+ writeConcern: { w: "majority" }
27
+ writeConcernDocument: { w: "majority" }
28
+ isServerDefault: false
29
+ isAcknowledged: true
30
+ -
31
+ description: "W as a custom string"
32
+ valid: true
33
+ writeConcern: { w: "my_mode" }
34
+ writeConcernDocument: { w: "my_mode" }
35
+ isServerDefault: false
36
+ isAcknowledged: true
37
+ -
38
+ description: "WTimeoutMS"
39
+ valid: true
40
+ writeConcern: { wtimeoutMS: 1000 }
41
+ writeConcernDocument: { wtimeout: 1000 }
42
+ isServerDefault: false
43
+ isAcknowledged: true
44
+ -
45
+ description: "WTimeoutMS as an invalid number"
46
+ # https://jira.mongodb.org/browse/SPEC-1457
47
+ valid: true
48
+ writeConcern: { wtimeoutMS: -1000 }
49
+ writeConcernDocument: { wtimeout: -1000 }
50
+ isServerDefault: ~
51
+ isAcknowledged: ~
52
+ -
53
+ description: "Journal as true"
54
+ valid: true
55
+ writeConcern: { journal: true }
56
+ writeConcernDocument: { j: true }
57
+ isServerDefault: false
58
+ isAcknowledged: true
59
+ -
60
+ description: "Journal as false"
61
+ valid: true
62
+ writeConcern: { journal: false }
63
+ writeConcernDocument: { j: false }
64
+ isServerDefault: false
65
+ isAcknowledged: true
66
+ -
67
+ description: "Unacknowledged with only w"
68
+ valid: true
69
+ writeConcern: { w: 0 }
70
+ writeConcernDocument: { w: 0 }
71
+ isServerDefault: false
72
+ isAcknowledged: false
73
+ -
74
+ description: "Unacknowledged with wtimeoutMS"
75
+ valid: true
76
+ writeConcern: { w: 0, wtimeoutMS: 500 }
77
+ writeConcernDocument: { w: 0, wtimeout: 500 }
78
+ isServerDefault: false
79
+ isAcknowledged: false
80
+ -
81
+ description: "Unacknowledged with journal"
82
+ valid: true
83
+ writeConcern: { w: 0, journal: false }
84
+ writeConcernDocument: { w: 0, j: false }
85
+ isServerDefault: false
86
+ isAcknowledged: false
87
+ -
88
+ description: "W is 0 with journal true"
89
+ valid: false
90
+ writeConcern: { w: 0, journal: true }
91
+ writeConcernDocument: { w: 0, j: true }
92
+ isServerDefault: false
93
+ isAcknowledged: true
94
+ -
95
+ description: "Everything"
96
+ valid: true
97
+ writeConcern: { w: 3, wtimeoutMS: 1000, journal: true }
98
+ writeConcernDocument: { w: 3, wtimeout: 1000, j: true }
99
+ isServerDefault: false
100
+ isAcknowledged: true
@@ -0,0 +1,39 @@
1
+ runOn:
2
+ -
3
+ minServerVersion: "4.1.11"
4
+
5
+ database_name: &database_name "retryable-reads-tests"
6
+ collection_name: &collection_name "coll"
7
+
8
+ data:
9
+ - {_id: 1, x: 11}
10
+ - {_id: 2, x: 22}
11
+ - {_id: 3, x: 33}
12
+
13
+ tests:
14
+ -
15
+ description: "Aggregate with $merge does not retry"
16
+ failPoint:
17
+ configureFailPoint: failCommand
18
+ mode: { times: 1 }
19
+ data:
20
+ failCommands: [aggregate]
21
+ closeConnection: true
22
+ operations:
23
+ -
24
+ object: collection
25
+ name: aggregate
26
+ arguments:
27
+ pipeline: &pipeline
28
+ - $match: {_id: {$gt: 1}}
29
+ - $sort: {x: 1}
30
+ - $merge: { into: "output-collection" }
31
+ error: true
32
+ expectations:
33
+ -
34
+ command_started_event:
35
+ command:
36
+ aggregate: *collection_name
37
+ pipeline: *pipeline
38
+ command_name: aggregate
39
+ database_name: *database_name
@@ -43,7 +43,7 @@ tests:
43
43
  database_name: *database_name
44
44
  - *retryable_command_started_event
45
45
  -
46
- description: "Aggregate succeeds after InterruptedDueToStepDown"
46
+ description: "Aggregate succeeds after InterruptedDueToReplStateChange"
47
47
  failPoint:
48
48
  <<: *failCommand_failPoint
49
49
  data: { failCommands: [aggregate], errorCode: 11602 }
@@ -31,11 +31,11 @@ tests:
31
31
  command:
32
32
  aggregate: 1
33
33
  cursor: {}
34
- pipeline: [ { $changeStream: { fullDocument: "default", allChangesForCluster: true } } ]
34
+ pipeline: [ { $changeStream: { allChangesForCluster: true } } ]
35
35
  database_name: admin
36
36
  - *retryable_command_started_event
37
37
  -
38
- description: "client.watch succeeds after InterruptedDueToStepDown"
38
+ description: "client.watch succeeds after InterruptedDueToReplStateChange"
39
39
  failPoint:
40
40
  <<: *failCommand_failPoint
41
41
  data: { failCommands: [aggregate], errorCode: 11602 }
@@ -25,7 +25,7 @@ tests:
25
25
  command:
26
26
  aggregate: 1
27
27
  cursor: {}
28
- pipeline: [ { $changeStream: { fullDocument: "default", "allChangesForCluster": true } } ]
28
+ pipeline: [ { $changeStream: { "allChangesForCluster": true } } ]
29
29
  database_name: admin
30
30
  -
31
31
  description: "client.watch succeeds on second attempt"
@@ -31,11 +31,11 @@ tests:
31
31
  command:
32
32
  aggregate: *collection_name
33
33
  cursor: {}
34
- pipeline: [ { $changeStream: { fullDocument: "default" } } ]
34
+ pipeline: [ { $changeStream: { } } ]
35
35
  database_name: *database_name
36
36
  - *retryable_command_started_event
37
37
  -
38
- description: "db.coll.watch succeeds after InterruptedDueToStepDown"
38
+ description: "db.coll.watch succeeds after InterruptedDueToReplStateChange"
39
39
  failPoint:
40
40
  <<: *failCommand_failPoint
41
41
  data: { failCommands: [aggregate], errorCode: 11602 }
@@ -25,7 +25,7 @@ tests:
25
25
  command:
26
26
  aggregate: *collection_name
27
27
  cursor: {}
28
- pipeline: [ { $changeStream: { fullDocument: "default" } } ]
28
+ pipeline: [ { $changeStream: { } } ]
29
29
  database_name: *database_name
30
30
  -
31
31
  description: "db.coll.watch succeeds on second attempt"
@@ -31,11 +31,11 @@ tests:
31
31
  command:
32
32
  aggregate: 1
33
33
  cursor: {}
34
- pipeline: [ { $changeStream: { fullDocument: "default" } } ]
34
+ pipeline: [ { $changeStream: { } } ]
35
35
  database_name: *database_name
36
36
  - *retryable_command_started_event
37
37
  -
38
- description: "db.watch succeeds after InterruptedDueToStepDown"
38
+ description: "db.watch succeeds after InterruptedDueToReplStateChange"
39
39
  failPoint:
40
40
  <<: *failCommand_failPoint
41
41
  data: { failCommands: [aggregate], errorCode: 11602 }
@@ -25,7 +25,7 @@ tests:
25
25
  command:
26
26
  aggregate: 1
27
27
  cursor: {}
28
- pipeline: [ { $changeStream: { fullDocument: "default" } } ]
28
+ pipeline: [ { $changeStream: { } } ]
29
29
  database_name: *database_name
30
30
  -
31
31
  description: "db.watch succeeds on second attempt"
@@ -35,7 +35,7 @@ tests:
35
35
  database_name: *database_name
36
36
  - *retryable_command_started_event
37
37
  -
38
- description: "Count succeeds after InterruptedDueToStepDown"
38
+ description: "Count succeeds after InterruptedDueToReplStateChange"
39
39
  failPoint:
40
40
  <<: *failCommand_failPoint
41
41
  data: { failCommands: [count], errorCode: 11602 }
@@ -36,7 +36,7 @@ tests:
36
36
  database_name: *database_name
37
37
  - *retryable_command_started_event
38
38
  -
39
- description: "CountDocuments succeeds after InterruptedDueToStepDown"
39
+ description: "CountDocuments succeeds after InterruptedDueToReplStateChange"
40
40
  failPoint:
41
41
  <<: *failCommand_failPoint
42
42
  data: { failCommands: [aggregate], errorCode: 11602 }
@@ -41,7 +41,7 @@ tests:
41
41
  database_name: *database_name
42
42
  - *retryable_command_started_event
43
43
  -
44
- description: "Distinct succeeds after InterruptedDueToStepDown"
44
+ description: "Distinct succeeds after InterruptedDueToReplStateChange"
45
45
  failPoint:
46
46
  <<: *failCommand_failPoint
47
47
  data: { failCommands: [distinct], errorCode: 11602 }
@@ -34,7 +34,7 @@ tests:
34
34
  database_name: *database_name
35
35
  - *retryable_command_started_event
36
36
  -
37
- description: "EstimatedDocumentCount succeeds after InterruptedDueToStepDown"
37
+ description: "EstimatedDocumentCount succeeds after InterruptedDueToReplStateChange"
38
38
  failPoint:
39
39
  <<: *failCommand_failPoint
40
40
  data: { failCommands: [count], errorCode: 11602 }
@@ -45,7 +45,7 @@ tests:
45
45
  database_name: *database_name
46
46
  - *retryable_command_started_event
47
47
  -
48
- description: "Find succeeds after InterruptedDueToStepDown"
48
+ description: "Find succeeds after InterruptedDueToReplStateChange"
49
49
  failPoint:
50
50
  <<: *failCommand_failPoint
51
51
  data: { failCommands: [find], errorCode: 11602 }
@@ -40,7 +40,7 @@ tests:
40
40
  database_name: *database_name
41
41
  - *retryable_command_started_event
42
42
  -
43
- description: "FindOne succeeds after InterruptedDueToStepDown"
43
+ description: "FindOne succeeds after InterruptedDueToReplStateChange"
44
44
  failPoint:
45
45
  <<: *failCommand_failPoint
46
46
  data: { failCommands: [find], errorCode: 11602 }
@@ -49,7 +49,7 @@ tests:
49
49
  sort: { n: 1 }
50
50
  database_name: *database_name
51
51
  -
52
- description: "Download succeeds after InterruptedDueToStepDown"
52
+ description: "Download succeeds after InterruptedDueToReplStateChange"
53
53
  failPoint:
54
54
  <<: *failCommand_failPoint
55
55
  data: { failCommands: [find], errorCode: 11602 }
@@ -50,7 +50,7 @@ tests:
50
50
  sort: { n: 1 }
51
51
  database_name: *database_name
52
52
  -
53
- description: "DownloadByName succeeds after InterruptedDueToStepDown"
53
+ description: "DownloadByName succeeds after InterruptedDueToReplStateChange"
54
54
  failPoint:
55
55
  <<: *failCommand_failPoint
56
56
  data: { failCommands: [find], errorCode: 11602 }
@@ -29,7 +29,7 @@ tests:
29
29
  listCollections: 1
30
30
  - *retryable_command_started_event
31
31
  -
32
- description: "ListCollectionNames succeeds after InterruptedDueToStepDown"
32
+ description: "ListCollectionNames succeeds after InterruptedDueToReplStateChange"
33
33
  failPoint:
34
34
  <<: *failCommand_failPoint
35
35
  data: { failCommands: [listCollections], errorCode: 11602 }
@@ -29,7 +29,7 @@ tests:
29
29
  listCollections: 1
30
30
  - *retryable_command_started_event
31
31
  -
32
- description: "ListCollectionObjects succeeds after InterruptedDueToStepDown"
32
+ description: "ListCollectionObjects succeeds after InterruptedDueToReplStateChange"
33
33
  failPoint:
34
34
  <<: *failCommand_failPoint
35
35
  data: { failCommands: [listCollections], errorCode: 11602 }
@@ -29,7 +29,7 @@ tests:
29
29
  listCollections: 1
30
30
  - *retryable_command_started_event
31
31
  -
32
- description: "ListCollections succeeds after InterruptedDueToStepDown"
32
+ description: "ListCollections succeeds after InterruptedDueToReplStateChange"
33
33
  failPoint:
34
34
  <<: *failCommand_failPoint
35
35
  data: { failCommands: [listCollections], errorCode: 11602 }
@@ -29,7 +29,7 @@ tests:
29
29
  listDatabases: 1
30
30
  - *retryable_command_started_event
31
31
  -
32
- description: "ListDatabaseNames succeeds after InterruptedDueToStepDown"
32
+ description: "ListDatabaseNames succeeds after InterruptedDueToReplStateChange"
33
33
  failPoint:
34
34
  <<: *failCommand_failPoint
35
35
  data: { failCommands: [listDatabases], errorCode: 11602 }
@@ -29,7 +29,7 @@ tests:
29
29
  listDatabases: 1
30
30
  - *retryable_command_started_event
31
31
  -
32
- description: "ListDatabaseObjects succeeds after InterruptedDueToStepDown"
32
+ description: "ListDatabaseObjects succeeds after InterruptedDueToReplStateChange"
33
33
  failPoint:
34
34
  <<: *failCommand_failPoint
35
35
  data: { failCommands: [listDatabases], errorCode: 11602 }
@@ -29,7 +29,7 @@ tests:
29
29
  listDatabases: 1
30
30
  - *retryable_command_started_event
31
31
  -
32
- description: "ListDatabases succeeds after InterruptedDueToStepDown"
32
+ description: "ListDatabases succeeds after InterruptedDueToReplStateChange"
33
33
  failPoint:
34
34
  <<: *failCommand_failPoint
35
35
  data: { failCommands: [listDatabases], errorCode: 11602 }
@@ -30,7 +30,7 @@ tests:
30
30
  database_name: *database_name
31
31
  - *retryable_command_started_event
32
32
  -
33
- description: "ListIndexNames succeeds after InterruptedDueToStepDown"
33
+ description: "ListIndexNames succeeds after InterruptedDueToReplStateChange"
34
34
  failPoint:
35
35
  <<: *failCommand_failPoint
36
36
  data: { failCommands: [listIndexes], errorCode: 11602 }
@@ -30,7 +30,7 @@ tests:
30
30
  database_name: *database_name
31
31
  - *retryable_command_started_event
32
32
  -
33
- description: "ListIndexes succeeds after InterruptedDueToStepDown"
33
+ description: "ListIndexes succeeds after InterruptedDueToReplStateChange"
34
34
  failPoint:
35
35
  <<: *failCommand_failPoint
36
36
  data: { failCommands: [listIndexes], errorCode: 11602 }
@@ -25,7 +25,7 @@ tests:
25
25
  arguments:
26
26
  options:
27
27
  readConcern:
28
- level: snapshot
28
+ level: majority
29
29
  - &countDocuments
30
30
  name: countDocuments
31
31
  object: collection
@@ -51,7 +51,7 @@ tests:
51
51
  cursor: {}
52
52
  lsid: session0
53
53
  readConcern:
54
- level: snapshot
54
+ level: majority
55
55
  txnNumber:
56
56
  $numberLong: "1"
57
57
  startTransaction: true
@@ -116,7 +116,7 @@ tests:
116
116
  batchSize: 3
117
117
  lsid: session0
118
118
  readConcern:
119
- level: snapshot
119
+ level: majority
120
120
  txnNumber:
121
121
  $numberLong: "1"
122
122
  startTransaction: true
@@ -202,7 +202,7 @@ tests:
202
202
  batchSize: 3
203
203
  lsid: session0
204
204
  readConcern:
205
- level: snapshot
205
+ level: majority
206
206
  txnNumber:
207
207
  $numberLong: "1"
208
208
  startTransaction: true
@@ -282,7 +282,7 @@ tests:
282
282
  key: _id
283
283
  lsid: session0
284
284
  readConcern:
285
- level: snapshot
285
+ level: majority
286
286
  txnNumber:
287
287
  $numberLong: "1"
288
288
  startTransaction: true
@@ -328,7 +328,7 @@ tests:
328
328
  find: *collection_name
329
329
  lsid: session0
330
330
  readConcern:
331
- level: snapshot
331
+ level: majority
332
332
  txnNumber:
333
333
  $numberLong: "1"
334
334
  startTransaction: true