[SERVER-76393] Foribid sharding collections in admin database Created: 21/Apr/23  Updated: 29/Oct/23  Resolved: 22/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0, 7.1.0-rc0

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

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Sharding EMEA 2023-05-01
Participants:

 Description   

Starting from 7.0 SERVER-74567 it is possible to shard collections in `admin` database.

Before 7.0 the shardCollection operation for `admin` collections were directed to the config server, and they were failing with NoShardingEnabled because _shardsvrCreateCollection command was performing this check that was failing on the config server.

Since SERVER-74567 this check is passing on the config server that now has both configsvr and shardsvr roles.



 Comments   
Comment by Githook User [ 23/Apr/23 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-76393 Foribid sharding collections in admin database

(cherry picked from commit 69490a1b0b4a3f7c736d900f0189852bd21392d6)
Branch: v7.0
https://github.com/mongodb/mongo/commit/d87f0419b02018adc534cbbca0b61fb27ad6f23e

Comment by Githook User [ 22/Apr/23 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-76393 Foribid sharding collections in admin database
Branch: master
https://github.com/mongodb/mongo/commit/69490a1b0b4a3f7c736d900f0189852bd21392d6

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