[SERVER-22663] Make --shardsvr required for a mongod to be used as a shard Created: 16/Feb/16  Updated: 17/May/19  Resolved: 12/Aug/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.3.12

Type: Task Priority: Major - P3
Reporter: Crystal Horn Assignee: Esha Maharishi (Inactive)
Resolution: Done Votes: 0
Labels: todo_in_code
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-9521 Docs for SERVER-22663: Make --shardsv... Closed
Related
related to SERVER-24352 configs initialize sharding awareness... Closed
related to SERVER-25417 harden checks around using --shardSvr... Closed
related to SERVER-25543 add "shardsvr" startup option for sha... Closed
related to SERVER-25549 re-enable read_only_sharded suite Closed
is related to SERVER-25910 fail setShardVersion on mongod if not... Closed
is related to SERVER-23764 Reject most operations when a mongod ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 18 (08/05/16), Sharding 2016-08-29
Participants:
Case:

 Description   

3.4 onwards:

a shard can become shard aware in two ways:

  • started with --shardsvr and shardIdentity document found on disk
  • started with --shardsvr and receive shardIdentity insert

so, we will eventually reject all sharding commands if:

  • not started with --shardsvr
  • started with --shardsvr but not yet sharding aware

=============

for backwards compatibility with 3.2:

a shard can also become shard aware if:

  • started with --shardsvr and receive command that initializes sharding awareness

so (what this ticket does):

reject all sharding commands except a whitelist of commands that initialize sharding awareness.



 Comments   
Comment by Githook User [ 15/Aug/16 ]

Author:

{u'username': u'xdg', u'name': u'David Golden', u'email': u'xdg@xdg.me'}

Message: Devel: Always add --shardsvr to sharded cluster CLI options

Previously, this only changed the port and was thus unnecessary. However
SERVER-22663 is going to make it mandatory.
Branch: master
https://github.com/mongodb/mongo-perl-driver/commit/a8842a8967036098468866fdcf6340156f456746

Comment by David Golden [ 15/Aug/16 ]

This commit broke Perl's sharded server CI tests. Easily fixed, but please keep in mind that changes to required arguments may have downstream impacts.

Comment by Githook User [ 12/Aug/16 ]

Author:

{u'name': u'Esha Maharishi', u'email': u'esha.maharishi@mongodb.com'}

Message: SERVER-22663 Make --shardsvr required for a mongod to be used as a shard
Branch: master
https://github.com/mongodb/mongo/commit/5b6ca35994ae865db7ea3a036cd53aa43a62d2c5

Comment by Githook User [ 12/Aug/16 ]

Author:

{u'name': u'Esha Maharishi', u'email': u'esha.maharishi@mongodb.com'}

Message: Revert "SERVER-22663 Make --shardsvr required for a mongod to be used as a shard"

This reverts commit d1223a8ad44d6bc91766f0bd05a08820cdb1fdea.
Branch: master
https://github.com/mongodb/mongo/commit/62ae8e41416c8dde5c09b9c7ce63b88bd36b3f6b

Comment by Githook User [ 12/Aug/16 ]

Author:

{u'name': u'Esha Maharishi', u'email': u'esha.maharishi@mongodb.com'}

Message: SERVER-22663 Make --shardsvr required for a mongod to be used as a shard
Branch: master
https://github.com/mongodb/mongo/commit/d1223a8ad44d6bc91766f0bd05a08820cdb1fdea

Comment by Githook User [ 23/Mar/16 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-22663 Remember --shardsvr setting
Branch: master
https://github.com/mongodb/mongo/commit/12299f3cff06164c8a9360f8ae72fceae3ba2c88

Comment by Spencer Brody (Inactive) [ 23/Mar/16 ]

renctan, can you update the description of this ticket to include what exactly the new checks being added will be?

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