[SERVER-29164] CatalogCache::getCollectionRoutingInfo may throw on thread interruption Created: 12/May/17  Updated: 30/Oct/23  Resolved: 13/May/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.4.4, 3.5.6
Fix Version/s: 3.4.5, 3.5.7

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4
Sprint: Sharding 2017-05-29
Participants:
Linked BF Score: 0

 Description   

As part of the changes to make collection metadata refresh asynchronous, it is possible that the CatalogCache::getCollectionRoutingInfo call can throw on interruption.

When MetadataManager::finishRecovery gets this exception, it will unwind through the scoped guard block and will propagate the exception to the balancer main thread, which is not prepared to handle it.



 Comments   
Comment by Githook User [ 17/May/17 ]

Author:

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

Message: SERVER-29164 Ensure CatalogCache::getCollectionRoutingInfo does not throw

(cherry picked from commit ff3177abf366f0699629afb1b20fb72c6c79a6e4)
Branch: v3.4
https://github.com/mongodb/mongo/commit/4dbab2657ec28f71da0e97c2d2f9be8df4e54e70

Comment by Githook User [ 13/May/17 ]

Author:

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

Message: SERVER-29164 Ensure CatalogCache::getCollectionRoutingInfo does not throw
Branch: master
https://github.com/mongodb/mongo/commit/ff3177abf366f0699629afb1b20fb72c6c79a6e4

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