File tree Expand file tree Collapse file tree 6 files changed +45
-69
lines changed
test/spec/server-discovery-and-monitoring/integration Expand file tree Collapse file tree 6 files changed +45
-69
lines changed Original file line number Diff line number Diff line change 117
117
"failPoint" : {
118
118
"configureFailPoint" : " failCommand" ,
119
119
"mode" : {
120
- "times" : 2
120
+ "times" : 4
121
121
},
122
122
"data" : {
123
123
"failCommands" : [
162
162
}
163
163
]
164
164
}
165
- },
166
- {
167
- "name" : " assertEventCount" ,
168
- "object" : " testRunner" ,
169
- "arguments" : {
170
- "event" : " ServerMarkedUnknownEvent" ,
171
- "count" : 1
172
- }
173
- },
174
- {
175
- "name" : " assertEventCount" ,
176
- "object" : " testRunner" ,
177
- "arguments" : {
178
- "event" : " PoolClearedEvent" ,
179
- "count" : 1
180
- }
181
165
}
182
166
],
183
167
"expectations" : [
Original file line number Diff line number Diff line change @@ -84,15 +84,16 @@ tests:
84
84
documents :
85
85
- _id : 1
86
86
- _id : 2
87
- # Configure the next streaming hello check to fail with a command
88
- # error.
89
- # Use times: 2 so that the RTT hello is blocked as well.
87
+ # Configure the next streaming hello check to fail with a command error.
88
+ # Use "times: 4" to increase the probability that the Monitor check fails
89
+ # since the RTT hello may trigger this failpoint one or many times as
90
+ # well.
90
91
- name : configureFailPoint
91
92
object : testRunner
92
93
arguments :
93
94
failPoint :
94
95
configureFailPoint : failCommand
95
- mode : { times: 2 }
96
+ mode : { times: 4 }
96
97
data :
97
98
failCommands : ["hello", "isMaster"]
98
99
appName : commandErrorCheckTest
@@ -119,17 +120,19 @@ tests:
119
120
documents :
120
121
- _id : 3
121
122
- _id : 4
122
- # Assert the server was marked Unknown and pool was cleared exactly once.
123
- - name : assertEventCount
124
- object : testRunner
125
- arguments :
126
- event : ServerMarkedUnknownEvent
127
- count : 1
128
- - name : assertEventCount
129
- object : testRunner
130
- arguments :
131
- event : PoolClearedEvent
132
- count : 1
123
+ # We cannot assert the server was marked Unknown and pool was cleared an
124
+ # exact number of times because the RTT hello may have triggered this
125
+ # failpoint one or many times as well.
126
+ # - name: assertEventCount
127
+ # object: testRunner
128
+ # arguments:
129
+ # event: ServerMarkedUnknownEvent
130
+ # count: 1
131
+ # - name: assertEventCount
132
+ # object: testRunner
133
+ # arguments:
134
+ # event: PoolClearedEvent
135
+ # count: 1
133
136
134
137
expectations :
135
138
- command_started_event :
Original file line number Diff line number Diff line change 116
116
"failPoint" : {
117
117
"configureFailPoint" : " failCommand" ,
118
118
"mode" : {
119
- "times" : 2
119
+ "times" : 4
120
120
},
121
121
"data" : {
122
122
"failCommands" : [
Original file line number Diff line number Diff line change @@ -84,14 +84,15 @@ tests:
84
84
- _id : 1
85
85
- _id : 2
86
86
# Configure the next streaming hello check to fail with a non-timeout
87
- # network error. Use times: 2 to ensure that the the Monitor check fails
88
- # since the RTT hello may trigger this failpoint as well.
87
+ # network error. Use "times: 4" to increase the probability that the
88
+ # Monitor check fails since the RTT hello may trigger this failpoint one
89
+ # or many times as well.
89
90
- name : configureFailPoint
90
91
object : testRunner
91
92
arguments :
92
93
failPoint :
93
94
configureFailPoint : failCommand
94
- mode : { times: 2 }
95
+ mode : { times: 4 }
95
96
data :
96
97
failCommands : ["hello", "isMaster"]
97
98
appName : networkErrorCheckTest
@@ -116,8 +117,8 @@ tests:
116
117
- _id : 3
117
118
- _id : 4
118
119
# We cannot assert the server was marked Unknown and pool was cleared an
119
- # exact number of times because the RTT hello may or may not have
120
- # triggered this failpoint as well.
120
+ # exact number of times because the RTT hello may have triggered this
121
+ # failpoint one or many times as well.
121
122
# - name: assertEventCount
122
123
# object: testRunner
123
124
# arguments:
Original file line number Diff line number Diff line change 117
117
"failPoint" : {
118
118
"configureFailPoint" : " failCommand" ,
119
119
"mode" : {
120
- "times" : 2
120
+ "times" : 4
121
121
},
122
122
"data" : {
123
123
"failCommands" : [
160
160
}
161
161
]
162
162
}
163
- },
164
- {
165
- "name" : " assertEventCount" ,
166
- "object" : " testRunner" ,
167
- "arguments" : {
168
- "event" : " ServerMarkedUnknownEvent" ,
169
- "count" : 1
170
- }
171
- },
172
- {
173
- "name" : " assertEventCount" ,
174
- "object" : " testRunner" ,
175
- "arguments" : {
176
- "event" : " PoolClearedEvent" ,
177
- "count" : 1
178
- }
179
163
}
180
164
],
181
165
"expectations" : [
Original file line number Diff line number Diff line change @@ -84,14 +84,16 @@ tests:
84
84
documents :
85
85
- _id : 1
86
86
- _id : 2
87
- # Configure the next streaming hello check to fail with a timeout
88
- # Use times: 2 so that the RTT hello is blocked as well.
87
+ # Configure the next streaming hello check to fail with a timeout.
88
+ # Use "times: 4" to increase the probability that the Monitor check times
89
+ # out since the RTT hello may trigger this failpoint one or many times as
90
+ # well.
89
91
- name : configureFailPoint
90
92
object : testRunner
91
93
arguments :
92
94
failPoint :
93
95
configureFailPoint : failCommand
94
- mode : { times: 2 }
96
+ mode : { times: 4 }
95
97
data :
96
98
failCommands : ["hello", "isMaster"]
97
99
appName : timeoutMonitorCheckTest
@@ -119,17 +121,19 @@ tests:
119
121
documents :
120
122
- _id : 3
121
123
- _id : 4
122
- # Assert the server was marked Unknown and pool was cleared exactly once.
123
- - name : assertEventCount
124
- object : testRunner
125
- arguments :
126
- event : ServerMarkedUnknownEvent
127
- count : 1
128
- - name : assertEventCount
129
- object : testRunner
130
- arguments :
131
- event : PoolClearedEvent
132
- count : 1
124
+ # We cannot assert the server was marked Unknown and pool was cleared an
125
+ # exact number of times because the RTT hello may have triggered this
126
+ # failpoint one or many times as well.
127
+ # - name: assertEventCount
128
+ # object: testRunner
129
+ # arguments:
130
+ # event: ServerMarkedUnknownEvent
131
+ # count: 1
132
+ # - name: assertEventCount
133
+ # object: testRunner
134
+ # arguments:
135
+ # event: PoolClearedEvent
136
+ # count: 1
133
137
134
138
expectations :
135
139
- command_started_event :
You can’t perform that action at this time.
0 commit comments