[SERVER-72996] Ignore NamespaceExists status when QE compact creates the ECOC collection Created: 18/Jan/23  Updated: 29/Oct/23  Resolved: 22/Mar/23

Status: Closed
Project: Core Server
Component/s: Queryable Encryption
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Erwin Pe Assignee: Erwin Pe
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2023-02-06, Security 2023-04-03
Participants:
Linked BF Score: 19

 Description   

The compactStructuredEncryptionData command creates the ECOC collection after renaming it to a temporary namespace. Between the rename and the create, it is possible that another operation may create the ECOC collection, and so the compact command will fail with a NamespaceExists error when it tries to create the now-existing ECOC collection. This error should be ignored in compact.



 Comments   
Comment by Githook User [ 22/Mar/23 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-72996 Ignore NamespaceExists status when QE compact creates the ECOC collection
Branch: master
https://github.com/mongodb/mongo/commit/f8dd83b8b2eac3f8482f7654f4d63c732404d411

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