[SERVER-25910] fail setShardVersion on mongod if not running with --shardsvr Created: 31/Aug/16  Updated: 19/Nov/16  Resolved: 08/Sep/16

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

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

Issue Links:
Related
related to SERVER-22663 Make --shardsvr required for a mongod... Closed
is related to SERVER-25549 re-enable read_only_sharded suite Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2016-09-19
Participants:

 Description   

There are two ways shardVersion information is sent to a mongod:

1) as part of the command, which the mongod uses to set the shardVersion on the OperationShardingState
2) by using a versioned connection, by sending setShardVersion to the mongod before sending the command

SERVER-22663 added checks to prevent a mongod that is not running with --shardsvr from accepting commands with shardVersion information sent the first way.

In order to also prevent it from accepting commands with shardVersion information sent the second way, mongods not running with --shardsvr should fail the setShardVersion command with the same error.

This is currently manifesting in the read_only_sharded suite, where shard mongods are not yet being started with --shardsvr (see SERVER-25549), but commands that send shardVersion information through setShardVersion are passing.



 Comments   
Comment by Githook User [ 08/Sep/16 ]

Author:

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

Message: SERVER-25910 fail setShardVersion on mongod if not running with --shardsvr
Branch: master
https://github.com/mongodb/mongo/commit/2d3d3d3a92e2b1549a638a6f06d8c408625a2287

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