[SERVER-39183] Change $where to respect socket disconnection Created: 24/Jan/19  Updated: 29/Oct/23  Resolved: 10/Feb/19

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

Type: Improvement Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-38687 Mongod segfaults during teardown afte... Closed
Problem/Incident
Related
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2019-01-28, Service Arch 2019-02-11, Service Arch 2019-02-25
Participants:
Linked BF Score: 68

 Description   

$where can normally only detect disconnection through invocation of it's kill() method.

changing the proxy scope to wait on an opCtx would allow us to detect disconnect normally (by allowing us to do baton work while javascript was executing) and issue a kill to the implscope from the proxy scope



 Comments   
Comment by Githook User [ 11/Feb/19 ]

Author:

{'name': 'Jason Carey', 'email': 'jcarey@argv.me', 'username': 'hanumantmk'}

Message: SERVER-39183 Avoid opCtx wait in implscope sleep

It's not necessary about races with killop
Branch: master
https://github.com/mongodb/mongo/commit/e92533300de16584d7fd59415a8cfc9d90eaef5b

Comment by Githook User [ 10/Feb/19 ]

Author:

{'name': 'Jason Carey', 'email': 'jcarey@argv.me', 'username': 'hanumantmk'}

Message: SERVER-39183 honor socket disconnect in $where
Branch: master
https://github.com/mongodb/mongo/commit/21b5477520744ca02e1574160caa31e0633849dd

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