[SERVER-46443] MongosProcessInterface::fieldsHaveSupportingUniqueIndex should read sharded collection indexes from a shard with chunks Created: 26/Feb/20  Updated: 29/Oct/23  Resolved: 07/Apr/20

Status: Closed
Project: Core Server
Component/s: Aggregation Framework, Sharding
Affects Version/s: None
Fix Version/s: 4.4.0-rc2, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Jack Mulrow Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: sharding-4.4-stabilization
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Sharding 2020-03-23, Sharding 2020-04-06, Sharding 2020-04-20
Participants:

 Description   

MongosProcessInterface::fieldsHaveSupportingUniqueIndex checks that a unique index exists to support given field paths by sending listIndexes to the primary shard for a namespace. As of SERVER-45103, the primary shard for a sharded collection isn't guaranteed to have correct indexes, so instead listIndexes should be sent with a shard version to a shard that owns at least one chunk. Additionally, for unsharded collections, the listIndexes should be sent with a database version to handle movePrimary.



 Comments   
Comment by Githook User [ 16/Apr/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-46443 MongosProcessInterface::fieldsHaveSupportingUniqueIndex should read sharded indexes from a shard with a chunk

(cherry picked from commit 1467c9ba4781aea4ba1663b469576cfb9a74d57b)
Branch: v4.4
https://github.com/mongodb/mongo/commit/fc937019ac1142064825d5a303a888515f1f62f5

Comment by Githook User [ 06/Apr/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-46443 MongosProcessInterface::fieldsHaveSupportingUniqueIndex should read sharded indexes from a shard with a chunk
Branch: master
https://github.com/mongodb/mongo/commit/1467c9ba4781aea4ba1663b469576cfb9a74d57b

Generated at Thu Feb 08 05:11:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.