[SERVER-28106] Cleanup the contract of ChunkManager::findIntersectingChunk Created: 24/Feb/17  Updated: 05/Apr/17  Resolved: 27/Feb/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.5.3
Fix Version/s: 3.4.3, 3.5.4

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

Issue Links:
Backports
Depends
is depended on by SERVER-20854 Don't refresh database and collection... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4
Sprint: Sharding 2017-03-06
Participants:

 Description   

The ChunkManager::findIntersectingChunk method currently sometimes returns StatusWith and sometimes throws, while reaching directly in the CatalogCache.

It should be changed to return the specific chunk if one chunk can be found or to always throw if it a single chunk cannot be found due to collation or lack of shard key.



 Comments   
Comment by Kaloian Manassiev [ 01/Mar/17 ]

Author:

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

Message: SERVER-28106 Cleanup the contract of ChunkManager::findIntersectingChunk
Branch: v3.4
https://github.com/mongodb/mongo/commit/3b0cfc71832f8bed99f27efba2e07a4258c24f29

Comment by Githook User [ 27/Feb/17 ]

Author:

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

Message: SERVER-28106 Cleanup the contract of ChunkManager::findIntersectingChunk
Branch: master
https://github.com/mongodb/mongo/commit/21c2b106d16d69590d46b02cf252bae8ed055b3d

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