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

Remove unnecessary usage of votes:0 in sharding tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sharding
    • Operating System:
      ALL
    • Sprint:
      Sharding 2019-08-12
    • Linked BF Score:
      3

      Description

      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}}]}; 

        Attachments

          Activity

            People

            Assignee:
            esha.maharishi Esha Maharishi
            Reporter:
            alex.taskov Alexander Taskov
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: