Skip to content

Commit 4c5f77b

Browse files
DRIVERS-716 Fix potential race in w:0 client bulk write test (#1598)
--------- Co-authored-by: Jeremy Mikola <[email protected]>
1 parent 57cdf9b commit 4c5f77b

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

source/command-logging-and-monitoring/tests/monitoring/unacknowledged-client-bulkWrite.json

Lines changed: 33 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/command-logging-and-monitoring/tests/monitoring/unacknowledged-client-bulkWrite.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
description: "unacknowledged-client-bulkWrite"
22

3-
schemaVersion: "1.1"
3+
schemaVersion: "1.7"
4+
5+
runOnRequirements:
6+
- minServerVersion: "8.0"
47

58
createEntities:
69
- client:
710
id: &client client
11+
useMultipleMongoses: false
812
observeEvents:
913
- commandStartedEvent
1014
- commandSucceededEvent
@@ -62,9 +66,21 @@ tests:
6266
$$unsetOrMatches: {}
6367
deleteResults:
6468
$$unsetOrMatches: {}
69+
# Force completion of the w:0 write by executing a find on the same connection
70+
- object: *collection
71+
name: find
72+
arguments:
73+
filter: {}
74+
expectResult:
75+
- { _id: 1, x: 11 }
76+
- { _id: 2, x: 22 }
77+
- { _id: 3, x: 333 }
78+
- { _id: 4, x: 44 }
79+
6580
expectEvents:
6681
-
6782
client: *client
83+
ignoreExtraEvents: true
6884
events:
6985
- commandStartedEvent:
7086
commandName: bulkWrite

0 commit comments

Comments
 (0)