-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
Fully Compatible
-
ALL
-
200
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The upsert case added by SERVER-138035 expects DollarPrefixedFieldName. In the multi_stmt_txn passthroughs, that error aborts the wrapping transaction, which also rolls back the beforeEach insert. The shared afterEach then finds an empty collection: expected [ ] to equal [ [Object], [Object] ].
Fix: Move the upsert case into its own describe block, starting from an empty collection that is committed before the upsert runs. The other cases keep their transaction coverage.