[SERVER-24810] Swap movePrimary command for ShardingTest::ensurePrimaryShard Created: 27/Jun/16  Updated: 21/Nov/16  Resolved: 30/Jun/16

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

Type: Bug Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Sharding 17 (07/15/16)
Participants:
Linked BF Score: 0

 Description   

ShardingTest::ensurePrimaryShard calls movePrimary and correctly checks the result for success or the error "it is already the primary". movePrimary should not be afterwards called, and really should always be replaced by ensurePrimaryShard.



 Comments   
Comment by Githook User [ 27/Jul/16 ]

Author:

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

Message: SERVER-24810 swap assert movePrimary commands with ShardingTest::ensurePrimaryShard that is more robust

(cherry picked from commit 11584b44f94ab93c02e75b4fb392eca43aa4a90c)
Branch: v3.2
https://github.com/mongodb/mongo/commit/01e0819f3195c904183cb650d0dfa7a08ecc2677

Comment by Githook User [ 30/Jun/16 ]

Author:

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

Message: SERVER-24810 swap assert movePrimary commands with ShardingTest::ensurePrimaryShard that is more robust
Branch: master
https://github.com/mongodb/mongo/commit/11584b44f94ab93c02e75b4fb392eca43aa4a90c

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