[SERVER-84176] Fix CollectionCatalog::establishConsistentCollections to avoid duplicated results during renames Created: 14/Dec/23  Updated: 12/Jan/24  Resolved: 15/Dec/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

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

Issue Links:
Fix
Related
related to SERVER-85143 Cleanup usages of CollectionCatalog::... Closed
is related to SERVER-82221 listCollections and listIndexes shoul... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: CAR Team 2023-12-25
Participants:
Linked BF Score: 135

 Description   

CollectionCatalog::establishConsistentCollections iterates existing and potentially existing collections. During the rename operation, the collection may appear in both and become a duplicate in the result



 Comments   
Comment by Githook User [ 02/Jan/24 ]

Author:

{'name': 'David Dominguez-Sal', 'email': 'david.dominguez@mongodb.com', 'username': 'david-dominguez-sal'}

Message: SERVER-82221: listCollections requests up to date information from the collection_catalog (backport SERVER-82221 and SERVER-84176)
Branch: v7.2
https://github.com/mongodb/mongo/commit/923456a8c60a3c4e54c767ba589a3947a308fa79

Comment by Githook User [ 02/Jan/24 ]

Author:

{'name': 'David Dominguez-Sal', 'email': 'david.dominguez@mongodb.com', 'username': 'david-dominguez-sal'}

Message: SERVER-82221: listCollections requests up to date information from the collection_catalog' into '10gen/mongo:v7.0' (backport SERVER-82221 and SERVER-84176)

GitOrigin-RevId: f371cb75bc7aeddd5e984fe67574a0f4fe95ecd9
Branch: v7.0
https://github.com/mongodb/mongo/commit/3e5695619baf60875744fb73f7635fe73a738180

Comment by Githook User [ 14/Dec/23 ]

Author:

{'name': 'David Dominguez-Sal', 'email': 'david.dominguez@mongodb.com', 'username': 'david-dominguez-sal'}

Message: SERVER-84176: Fix: listCollections does not duplicate results when the collection is renamed

GitOrigin-RevId: 516ab1c00267021ea6b0d4709324e12d80f4f23a
Branch: master
https://github.com/mongodb/mongo/commit/182a23fee0cb2f4ffd21f63555db2b8aed3517ff

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