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

Option manualAddShard in ShardingTest object is ignored

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.7.8
    • Shell
    • ALL
    • Hide

      Parameter style

      st = new ShardingTest("maxSize", 2, 1, 1, {shards: 2, chunksize: 1, manualAddShard: true});
      st.printShardingStatus();
      st.adminCommand({addshard: st.getConnNames()[0], maxSize: 5});
      st.adminCommand({addshard: st.getConnNames()[1], maxSize: 1});

      Object style - fails on addshard

      st = new ShardingTest({name: "maxSize", shards: 2, chunksize: 1, manualAddShard: true});
      st.printShardingStatus();
      // Note that shards are added, as option is ignored
      st.adminCommand({addshard: st.getConnNames()[0], maxSize: 5});
      st.adminCommand({addshard: st.getConnNames()[1], maxSize: 1});

      Show
      Parameter style st = new ShardingTest("maxSize", 2, 1, 1, {shards: 2, chunksize: 1, manualAddShard: true}); st.printShardingStatus(); st.adminCommand({addshard: st.getConnNames()[0], maxSize: 5}); st.adminCommand({addshard: st.getConnNames()[1], maxSize: 1}); Object style - fails on addshard st = new ShardingTest({name: "maxSize", shards: 2, chunksize: 1, manualAddShard: true}); st.printShardingStatus(); // Note that shards are added, as option is ignored st.adminCommand({addshard: st.getConnNames()[0], maxSize: 5}); st.adminCommand({addshard: st.getConnNames()[1], maxSize: 1});

    Description

      The ShardingTest object support 2 styles for specifying a test. The object style permits definitions of various options. The manualAddShard option only works when using the parameter style, not the object style.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: