[SERVER-22871] splitChunk needs to check for a failed index scan Created: 26/Feb/16  Updated: 19/Nov/16  Resolved: 09/Mar/16

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

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Tess Avitabile (Inactive)
Resolution: Done Votes: 0
Labels: code-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File repro.js    
Issue Links:
Related
is related to SERVER-13123 All callers of PlanExecutor::getNext ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 11 (03/14/16)
Participants:
Linked BF Score: 0

 Description   

The calls to getNext() in d_split.cpp all need to check for IS_EOF. Currently, you can crash if the index we're scanning gets dropped.



 Comments   
Comment by Githook User [ 09/Mar/16 ]

Author:

{u'username': u'tessavitabile', u'name': u'Tess Avitabile', u'email': u'tess.avitabile@mongodb.com'}

Message: SERVER-22871 splitChunk needs to check for a failed index scan
Branch: v3.2
https://github.com/mongodb/mongo/commit/c75dbbf696febfd4f5649088934cdb1e80743352

Comment by Tess Avitabile (Inactive) [ 01/Mar/16 ]

Attaching a jstest that repros the issue. It creates a collection indexed on

{x:1}

where all values of x are the same, runs a splitVector command on the index

{x:1}

, and drops the index

{x:1}

while the splitVector command is running.

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