[SERVER-40310] Accept 'seconds' as an alias for 'secs' for the sleep command Created: 22/Mar/19  Updated: 29/Oct/23  Resolved: 29/Mar/19

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

Type: Bug Priority: Major - P3
Reporter: James Wahlin Assignee: James Wahlin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2019-04-08
Participants:
Linked BF Score: 18

 Description   

jstests/noPassthrough/change_stream_concurrent_implicit_db_create.js:       assert.commandFailedWithCode(db.adminCommand({sleep: 1, lock: "w", seconds: 600}),
jstests/parallel/checkMultiThread.js:    db.runCommand({sleep: 1, seconds: 10000});
jstests/replsets/stepdown_kill_other_ops.js:        db.adminCommand({sleep: 1, lock: 'w', seconds: 60 * 10});



 Comments   
Comment by Githook User [ 29/Mar/19 ]

Author:

{'email': 'james@mongodb.com', 'name': 'James Wahlin', 'username': 'jameswahlin'}

Message: SERVER-40310 Accept 'seconds' as an alias for 'secs' for the sleep command
Branch: master
https://github.com/mongodb/mongo/commit/5dbd69269b0c11054c84d695a27f64ab8bc7242b

Comment by Andy Schwerin [ 25/Mar/19 ]

Maybe just accept "seconds" in addition to "secs". For the "sleep" command, I think I like whatever is the least typing.

Comment by James Wahlin [ 22/Mar/19 ]

As part of this work we could consider making the sleep command reject invalid arguments or even just "seconds" which seems like an easy mistake to make.

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