[SERVER-39237] Ensure $out with replaceCollection can clean up temp collection after interrupt Created: 28/Jan/19  Updated: 29/Oct/23  Resolved: 05/Mar/19

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

Type: Bug Priority: Major - P3
Reporter: Charlie Swanson Assignee: Arun Banala
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-10941 if you run out of disk space during a... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2019-02-25, Query 2019-03-11
Participants:

 Description   

Right now it seems to be the case that an interrupt will flag the OperationContext in a way that makes it impossible to take any more locks. We need to take a lock one more time to drop the temp collection.

First, we should verify whether this is actually an issue. If it is, we can take the same approach we took in MapReduce as part of SERVER-38480.



 Comments   
Comment by Githook User [ 05/Mar/19 ]

Author:

{'name': 'Arun Banala', 'username': 'banarun', 'email': 'arun.banala@mongodb.com'}

Message: SERVER-39237 move ON_BLOCK_EXIT before opCtx update
Branch: master
https://github.com/mongodb/mongo/commit/0f3940e146fb949203d307c168e2331ff49a12c6

Comment by Githook User [ 05/Mar/19 ]

Author:

{'name': 'Arun Banala', 'email': 'arun.banala@mongodb.com', 'username': 'banarun'}

Message: SERVER-39237 Ensure with replaceCollection can clean up temp collection after interrupt
Branch: master
https://github.com/mongodb/mongo/commit/33a382a7adee1181c0e3d0f5fdb29a9e576c54f2

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