[SERVER-22112] Circular call dependency between CatalogManager and CatalogCache Created: 08/Jan/16  Updated: 23/Nov/16  Resolved: 12/Jan/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.2.3, 3.3.1

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: code-and-test
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Sharding F (01/29/16)
Participants:
Linked BF Score: 0

 Description   

The two implementations of CatalogManager::shardCollection (in CSRS and legacy) call ChunkManager::reload in order to refresh the cached collection metadata. This call however, internally accesses the catalog cache, which introduces circular dependency.

The CatalogManager should sit under the read-through CatalogCache so this dependency should not exist.



 Comments   
Comment by Githook User [ 14/Jan/16 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-22112 Remove circular dependency between CatalogManager and CatalogCache
Branch: v3.2
https://github.com/mongodb/mongo/commit/b1d4e49c38032c5f63ab882bdfca7d7ae04e9d58

Comment by Githook User [ 12/Jan/16 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-22112 Remove circular dependency between CatalogManager and CatalogCache
Branch: master
https://github.com/mongodb/mongo/commit/a1313488c04d5f532044506c78f728bd9f742e7d

Generated at Thu Feb 08 03:59:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.