Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42217

Remove unnecessary usage of votes:0 in sharding tests

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • ALL
    • Sharding 2019-08-12
    • 21

      https://github.com/mongodb/mongo/blob/master/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js#L318

      These other tests also do this:

      $ gr "votes: 0" jstests/sharding/
      jstests/sharding/secondary_shard_version_protocol_with_causal_consistency.js:13:    let rsOpts = {nodes: [{rsConfig: {votes: 1}}, {rsConfig: {priority: 0, votes: 0}}]};
      jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js:348:    let rsOpts = {nodes: [{rsConfig: {votes: 1}}, {rsConfig: {priority: 0, votes: 0}}]};
      jstests/sharding/balance_repl.js:17:                    {rsConfig: {priority: 0, votes: 0}},
      jstests/sharding/balance_repl.js:23:                    {rsConfig: {priority: 0, votes: 0}},
      jstests/sharding/unique_index_on_shardservers.js:22:    let newNode = rs.add({'shardsvr': '', rsConfig: {priority: 0, votes: 0}});
      jstests/sharding/nonreplicated_uuids_on_shardservers.js:14:    let newNode = rs.add({'shardsvr': '', rsConfig: {priority: 0, votes: 0}});
      jstests/sharding/sharding_rs2.js:24:                    {rsConfig: {priority: 0, votes: 0}},
      jstests/sharding/sharding_rs2.js:30:                    {rsConfig: {priority: 0, votes: 0}},
      jstests/sharding/safe_secondary_reads_drop_recreate.js:535:    let rsOpts = {nodes: [{rsConfig: {votes: 1}}, {rsConfig: {priority: 0, votes: 0}}]};
      jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js:318:    let rsOpts = {nodes: [{rsConfig: {votes: 1}}, {rsConfig: {priority: 0, votes: 0}}]}; 

            Assignee:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Reporter:
            alex.taskov@mongodb.com Alexander Taskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: