[SERVER-31768] Don't create the first collection chunk on a primary drained shard Created: 30/Oct/17  Updated: 30/Oct/23  Resolved: 05/Feb/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.2.17, 3.4.10, 3.6.2
Fix Version/s: 3.6.3, 3.7.2

Type: Improvement Priority: Major - P3
Reporter: Renato Riccio Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-35653 Revert initial chunk creation optimiz... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.6
Sprint: Sharding 2018-02-12
Participants:

 Description   

Once we mark a primary shard to drain via

db.runCommand( { removeShard: "my_primary_shard"})

the first chunk for new sharded collections will still be created on the primary drained shard and then it will be moved to another shard automatically.

We should be able to avoid this step and directly create the first chunk on another shard.



 Comments   
Comment by Githook User [ 19/Jun/18 ]

Author:

{'username': 'jannaerin', 'name': 'jannaerin', 'email': 'golden.janna@gmail.com'}

Message: SERVER-35653: Revert "SERVER-31768 Don't create the first collection on a primary drained shard"

This reverts commit 0c4008ac3510bc3ca55dd36632ea0570d28c6d6f.
Branch: v3.6
https://github.com/mongodb/mongo/commit/b2479039a00b4e07b3c64515a39a790c14749483

Comment by Githook User [ 19/Jun/18 ]

Author:

{'username': 'jannaerin', 'name': 'jannaerin', 'email': 'golden.janna@gmail.com'}

Message: SERVER-35653: This reverts SERVER-31768
Branch: master
https://github.com/mongodb/mongo/commit/7c89f48c4f1f1e3ede2931ab602fa118281530a2

Comment by Githook User [ 19/Jun/18 ]

Author:

{'username': 'jannaerin', 'name': 'jannaerin', 'email': 'golden.janna@gmail.com'}

Message: SERVER-35653: This reverts SERVER-31768

This reverts commit 9057ac7f6e43b8e09dc861fccb52233d91dce977.

(cherry picked from commit 7b9d3050ce32eac341df2e9608b9bbff21266b01)
Branch: v4.0
https://github.com/mongodb/mongo/commit/c75bb8029b7a402a3fcf6e5985352aac4b69d04e

Comment by Githook User [ 19/Jun/18 ]

Author:

{'username': 'jannaerin', 'name': 'jannaerin', 'email': 'golden.janna@gmail.com'}

Message: SERVER-35653: This reverts SERVER-31768

This reverts commit 9057ac7f6e43b8e09dc861fccb52233d91dce977.
Branch: master
https://github.com/mongodb/mongo/commit/7b9d3050ce32eac341df2e9608b9bbff21266b01

Comment by Githook User [ 09/Feb/18 ]

Author:

{'email': 'golden.janna@gmail.com', 'name': 'jannaerin', 'username': 'jannaerin'}

Message: SERVER-31768 Don't create the first collection on a primary drained shard
Branch: v3.6
https://github.com/mongodb/mongo/commit/0c4008ac3510bc3ca55dd36632ea0570d28c6d6f

Comment by Githook User [ 05/Feb/18 ]

Author:

{'email': 'golden.janna@gmail.com', 'name': 'jannaerin', 'username': 'jannaerin'}

Message: SERVER-31768 Don't create the first collection chunk on a primary drained shard
Branch: master
https://github.com/mongodb/mongo/commit/9057ac7f6e43b8e09dc861fccb52233d91dce977

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