[SERVER-32957] Remove notion of "zombie cursors" on mongos Created: 29/Jan/18  Updated: 29/Oct/23  Resolved: 26/Feb/18

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

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

Backwards Compatibility: Fully Compatible
Sprint: Query 2018-02-12, Query 2018-02-26, Query 2018-03-12
Participants:

 Description   

Now that we've changed the ARM's kill() to not wait for outstanding batches, there should no longer be a need for "zombie cursors" or a "zombie cursor reaper" in mongos.

Note that we'll need to preserve "kill pending" cursors, for the case when killCursors is run an operation in the middle of a getMore. The operation will be interrupted, and until the cursor is checked back in (or out), the it will be marked as "kill pending."



 Comments   
Comment by Githook User [ 26/Feb/18 ]

Author:

{'email': 'ian.boros@10gen.com', 'name': 'Ian Boros'}

Message: SERVER-32957 part 2: remove killPending flag and reapZombieCursors()
Branch: master
https://github.com/mongodb/mongo/commit/d63f1a99ae31f71f37c53613cc30f751658e8453

Comment by Githook User [ 20/Feb/18 ]

Author:

{'email': 'ian.boros@10gen.com', 'name': 'Ian Boros'}

Message: SERVER-32957 part 1: mongos will now destroy kill pending cursors on checkin
Branch: master
https://github.com/mongodb/mongo/commit/2558b58366d5807af06e7cd8e36142d338350600

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