Skip to content

Commit

Permalink
fix on sharded
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelatkinson committed Oct 29, 2024
1 parent 00230d9 commit 6a9fa2d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
14 changes: 13 additions & 1 deletion source/retryable-writes/tests/unified/aggregate-out-merge.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions source/retryable-writes/tests/unified/aggregate-out-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,24 @@ tests:
runOnRequirements:
- minServerVersion: "4.1.11"
operations:
# The output collection must already exist for $merge on a sharded cluster
- object: *database0
name: createCollection
arguments:
collection: &outputCollection outputCollection
- object: *collection0
name: aggregate
arguments:
pipeline:
- { $sort: { x: 1 } }
- { $match: { _id: { $gt: 1 } } }
- { $merge: { into: other_test_collection } }
- { $merge: { into: *outputCollection } }
expectEvents:
- client: client0
events:
- commandStartedEvent:
commandName: create
- commandStartedEvent:
commandName: aggregate
command:
txnNumber: { $$exists: false }
txnNumber: { $$exists: false }
2 changes: 1 addition & 1 deletion source/retryable-writes/tests/unified/bulkWrite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -537,4 +537,4 @@ tests:
- commandStartedEvent:
commandName: delete
command:
txnNumber: { $$exists: false }
txnNumber: { $$exists: false }

0 comments on commit 6a9fa2d

Please sign in to comment.