[SERVER-21135] Add more basic tests for sharded implicit database creation Created: 26/Oct/15  Updated: 25/Jan/17  Resolved: 08/Dec/15

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.2.0-rc0
Fix Version/s: 3.2.1, 3.3.0

Type: Improvement Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: Sharding C (11/20/15), Sharding D (12/11/15)
Participants:

 Description   
  • Insert to a document to a collection of a database that is not yet seen by the cluster. New valid entry for config.database should be created and insert should be successful.
  • Insert to a document to a collection of a database that is already known by the cluster. config.database entry should not be modified and insert should be successful.


 Comments   
Comment by Githook User [ 09/Dec/15 ]

Author:

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

Message: SERVER-21135 Add more basic tests for sharded implicit database creation
(cherry picked from commit 0ec5ef6940fd1efcfcbaa5f187ac4a8a7e92a480)
Branch: v3.2
https://github.com/mongodb/mongo/commit/6a8dc1be90d63f3f600eb6b3e7ef72e523170ac7

Comment by Githook User [ 08/Dec/15 ]

Author:

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

Message: SERVER-21135 Add more basic tests for sharded implicit database creation
Branch: master
https://github.com/mongodb/mongo/commit/0ec5ef6940fd1efcfcbaa5f187ac4a8a7e92a480

Comment by Spencer Brody (Inactive) [ 26/Oct/15 ]

renctan, I thought of two other examples of implicit database creation - should they be added to this ticket or are they already covered by existing tests?

  • enableSharding on a non-existent database. New valid entry for config.database should be created.
  • addShard when the shard contains a database that the cluster doesn't yet know about. New valid config.databases entry should be created, with the new shard as primary.
Generated at Thu Feb 08 03:56:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.