[SERVER-35238] Drop the collection after removing the partially written chunks for mapReduce in mongos_manual_intervention_actions.js Created: 25/May/18  Updated: 29/Oct/23  Resolved: 27/Jul/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.6.9, 4.0.2, 4.1.1

Type: Bug Priority: Major - P3
Reporter: Janna Golden Assignee: Cheahuychou Mao
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:
v4.0, v3.6
Participants:
Linked BF Score: 35

 Description   

As of SERVER-33538, we no longer allow mapReduce to be called with an existing unsharded output collection. If the shardCollection command fails (due to a stepdown, etc.) on the first attempt of mapReduce, the collection will be created but not sharded so we will fail the command entirely. We should drop the collection in addition to cleaning up the partially written chunks in the case of shardCollection failing during mapReduce.



 Comments   
Comment by Githook User [ 24/Sep/18 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}

Message: SERVER-35238 Drop the collection after removing the partially written chunks for mapReduce in mongos_manual_intervention_actions.js

(cherry picked from commit c7ce2dcdeaa9c93846ebe219ed4829c9affe493f)
Branch: v3.6
https://github.com/mongodb/mongo/commit/c1ca12f9017bcdd912417619a06c2205f60e7f8b

Comment by Githook User [ 23/Aug/18 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}

Message: SERVER-35238 Drop the collection after removing the partially written chunks for mapReduce in mongos_manual_intervention_actions.js

(cherry picked from commit c7ce2dcdeaa9c93846ebe219ed4829c9affe493f)
Branch: v4.0
https://github.com/mongodb/mongo/commit/28370e22f84cb5623b1ae3665fde2906c9cf0b0c

Comment by Githook User [ 27/Jul/18 ]

Author:

{'username': 'cheahuychou', 'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com'}

Message: SERVER-35238 Drop the collection after removing the partially written chunks for mapReduce in mongos_manual_intervention_actions.js
Branch: master
https://github.com/mongodb/mongo/commit/c7ce2dcdeaa9c93846ebe219ed4829c9affe493f

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