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

split command with find fails

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.0-rc1
    • Affects Version/s: 2.3.2
    • Component/s: Sharding
    • Labels:
      None
    • ALL

      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();
      

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

              Created:
              Updated:
              Resolved: