[SERVER-71405] QE compact coordinator must create the ECOC after renaming to temp Created: 16/Nov/22  Updated: 29/Oct/23  Resolved: 05/Jan/23

Status: Closed
Project: Core Server
Component/s: Queryable Encryption
Affects Version/s: None
Fix Version/s: 6.3.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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2022-11-28, Security 2022-12-12, Security 2022-12-26, Security 2023-01-09
Participants:

 Description   

In sharded clusters, doing QE writes will fail with the following error:

{ "nInserted" : 1, "nMatched" : 0, "nModified" : 0, "nRemoved" : 0, "nUpserted" : 0, "writeErrors" : [ { "index" : 0, "code" : 263, "errmsg" : "Transaction was aborted :: caused by :: from shard rs1 :: caused by :: Cannot create new collections inside distributed transactions" } ] }

if the ECOC collection does not exist and needs to be implicitly created. This normally happens when the compaction operation renames the ECOC collection to a name suffixed with .compact, but does not create a new ECOC collection as replacement.



 Comments   
Comment by Githook User [ 04/Jan/23 ]

Author:

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

Message: SERVER-71405 QE compact coordinator must create the ECOC after renaming to temp
Branch: master
https://github.com/mongodb/mongo/commit/496f97f80741665e916da49ecfc7b87680f095b1

Comment by Githook User [ 04/Jan/23 ]

Author:

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

Message: SERVER-71405 QE compact coordinator must create the ECOC after renaming to temp
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/c0be3df9f161b4ea252ae7c32b763dc63efa46a2

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