[SERVER-47441] Remove unnecessary movePrimary calls from commands_lib.js Created: 09/Apr/20  Updated: 29/Oct/23  Resolved: 13/May/20

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

Type: Bug Priority: Minor - P4
Reporter: Sara Golemon Assignee: Blake Oler
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Related
related to SERVER-48620 Run movePrimary in renameCollection_t... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2020-04-20, Sharding 2020-05-04, Sharding 2020-05-18
Participants:
Linked BF Score: 24

 Description   

Tests: applyOps_c_renameCollection_twoDbs and renameCollection_twoDbs both make use of the `movePrimary` command which is available on mongos only, but do not specify `skipUnlessSharded`.  It's unclear which resolution is prefered.

  1. Ignore CommandUnknown error.  This is the current state, if desired we should explicitly comment that failure is an option.
  2. Specify `skipUnlessSharded: true` if this is in deed a mongos only test.


 Comments   
Comment by Githook User [ 13/May/20 ]

Author:

{'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'}

Message: SERVER-47441 Remove unnecessary movePrimary calls from commands_lib.js
Branch: master
https://github.com/mongodb/mongo/commit/06111946baab8c63097e19693fd312e031efbbea

Generated at Thu Feb 08 05:14:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.