-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.5.2
-
Component/s: JavaScript
Interrupting a Javascript operation currently sets the operation's error code to any of: 16711, 16712, 13475, 16721.
Javascript interruption should use the same error codes that other server operations use on interruption (currently 11600/11601/50 for shutdown/killop/maxtime). This would allow drivers to more easily detect the type of failure mode and propagate the appropriate exception to the application.
- is duplicated by
-
SERVER-12764 Using maxTimeMS & Javascript can lead to different errors from the server
- Closed
- related to
-
SERVER-2212 Server automatically abort queries/commands after user-specified time limit
- Closed