[SERVER-30614] missing_key.js should check its inserts and commands Created: 11/Aug/17  Updated: 30/Oct/23  Resolved: 14/Aug/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.5.12

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

missing_key.js does some inserts and commands without checking them

coll.insert({x: 1, z: 1});
coll.insert({y: 1, z: 1});
db.adminCommand({enableSharding: 'testDb'});

If these fail, this leads to harder-to-diagnose failures later on. We should use
assert.writeOK() on the insers and assert.commandWorked on the command.



 Comments   
Comment by Githook User [ 14/Aug/17 ]

Author:

{'name': 'Kaloian Manassiev', 'username': 'kaloianm', 'email': 'kaloian.manassiev@mongodb.com'}

Message: SERVER-30614 Add writeOK checks to JS test writes in missing_key.js
Branch: master
https://github.com/mongodb/mongo/commit/2176ab64295b23e8c67f7799d1310791f14db147

Generated at Thu Feb 08 04:24:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.