[SERVER-35061] Javascript sleep should always emit an error when interrupted Created: 18/May/18  Updated: 29/Oct/23  Resolved: 23/May/18

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: 3.6.10, 4.0.0-rc1, 4.1.1

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

Issue Links:
Backports
Related
is related to SERVER-31508 native_sleep used by JavaScript shoul... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Sprint: Platforms 2018-05-21, Platforms 2018-06-04
Participants:
Linked BF Score: 11

 Description   

If a Javascript operation is interrupted while sleeping, it should not be possible for the sleep to be interrupted and the script to complete without an error. Instead, the script should terminate with an error.



 Comments   
Comment by Githook User [ 20/Nov/18 ]

Author:

{'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com', 'username': 'spencerjackson'}

Message: SERVER-35061: Javascript sleep should error on premature wake

(cherry picked from commit ae8f7d8160aef246ea4c31169d42865fc55e98c3)
Branch: v3.6
https://github.com/mongodb/mongo/commit/8edee17cf7c525a34194ce6ab8c9217ae651b829

Comment by Githook User [ 23/May/18 ]

Author:

{'username': 'spencerjackson', 'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com'}

Message: SERVER-35061: Javascript sleep should error on premature wake

(cherry picked from commit ae8f7d8160aef246ea4c31169d42865fc55e98c3)
Branch: v4.0
https://github.com/mongodb/mongo/commit/aef65cd5c317f3fc01cadd40bbfab086cf961077

Comment by Githook User [ 23/May/18 ]

Author:

{'username': 'spencerjackson', 'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com'}

Message: SERVER-35061: Javascript sleep should error on premature wake
Branch: master
https://github.com/mongodb/mongo/commit/ae8f7d8160aef246ea4c31169d42865fc55e98c3

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