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

split command with find fails

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.4.0-rc1
    • 2.3.2
    • Sharding
    • None
    • ALL

    Description

      Running the small snippet below results in:

      assert failed : Cmd failed: {
      	"code" : 13503,
      	"ok" : 0,
      	"errmsg" : "exception: splitVector command (median key) failed: { ok: 0.0, errmsg: \"need to specify the desired max chunk size (maxChunkSize or maxChunkSizeBytes)\" }"
      }

      var st = new ShardingTest({ shards: 2, chunkSize: 1 });
      st.stopBalancer();
       
      var testDB = st.s.getDB('test');
      testDB.adminCommand({ enableSharding: 'test' });
      testDB.adminCommand({ shardCollection: 'test.user', key: { x: 1 }});
       
      var cmdRes = testDB.adminCommand({ split: 'test.user', find: { x: 987745 }});
      assert(cmdRes.ok, 'Cmd failed: ' + tojson(cmdRes));
       
      st.stop();

      Attachments

        Activity

          People

            alerner Alberto Lerner
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: