[SERVER-27860] Enable ShardLocal on shards Created: 30/Jan/17  Updated: 01/Mar/17  Resolved: 01/Mar/17

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

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done before SERVER-27811 Refactor catalog client classes to ac... Closed
has to be done after SERVER-27977 Remove config connection string comma... Closed
has to be done after SERVER-28012 Make ShardLocal stateless: remove Sha... Closed
Related
related to SERVER-27885 Create new function on Shard class to... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2017-02-13, Sharding 2017-03-06
Participants:

 Description   

Currently ShardLocal has invariants to only run on config servers. Safe secondary reads requires the ability to do local reads/writes, to new config.chunks.uuid collections, so these must be removed. The initialization code will also need to be changed, to create ShardLocal instances on shards, which currently cannot be happening because the ShardLocal constructor has an invariant in it to make sure it's on a config server.

Specific Shard class changes:

  • remove "OnConfig" from function names, as they'll run on shards and config servers
  • remove invariant checks that the server is a config server
  • additional unit testing


 Comments   
Comment by Dianna Hohensee (Inactive) [ 01/Mar/17 ]

Reverted preliminary work above because this task is no longer needed.

Comment by Dianna Hohensee (Inactive) [ 01/Mar/17 ]

Author:

{u'username': u'DiannaHohensee', u'name': u'Dianna Hohensee', u'email': u'dianna.hohensee@10gen.com'}

Message: Revert "SERVER-27860 remove invariants to prevent ShardLocal running on shards and remove "-OnConfig" function name suffixes"

This reverts commit d29e95a056c2522f4bfd57e417970e7ecf18266c.
Branch: master
https://github.com/mongodb/mongo/commit/d29e95a056c2522f4bfd57e417970e7ecf18266c

Comment by Githook User [ 10/Feb/17 ]

Author:

{u'username': u'DiannaHohensee', u'name': u'Dianna Hohensee', u'email': u'dianna.hohensee@10gen.com'}

Message: SERVER-27860 remove invariants to prevent ShardLocal running on shards and remove "-OnConfig" function name suffixes
Branch: master
https://github.com/mongodb/mongo/commit/489cd07d2a3711286debae56f28416d7ba290648

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