[SERVER-32492] idhack_sharded.js should use _waitForDelete:true in moveChunk Created: 29/Dec/17  Updated: 30/Oct/23  Resolved: 29/Dec/17

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.6.3, 3.7.1

Type: Bug Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Tess Avitabile (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6
Sprint: Query 2018-01-15
Participants:
Linked BF Score: 0

 Description   

idhack_sharded.js runs a moveChunk command without _waitForDelete:true. It then inserts an orphan document and expects to see the result in the count command. However, if range deletion has not yet completed, the document could be deleted in between the insert and the count.



 Comments   
Comment by Githook User [ 10/Jan/18 ]

Author:

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

Message: SERVER-32492 idhack_sharded.js should use _waitForDelete:true in moveChunk

(cherry picked from commit 7dc686af406a9651c9555981ac67fb7f487e4ae5)
Branch: v3.6
https://github.com/mongodb/mongo/commit/1e1323ff71e3cbe7aeccd6fe6e389f27b79db399

Comment by Githook User [ 29/Dec/17 ]

Author:

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

Message: SERVER-32492 idhack_sharded.js should use _waitForDelete:true in moveChunk
Branch: master
https://github.com/mongodb/mongo/commit/7dc686af406a9651c9555981ac67fb7f487e4ae5

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