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

allow moving of chunk by _id vs find or bounds

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Admin, Sharding
    • Labels:
      None
    • Sharding
    • ALL

      We want to be able to select a specific chunk from config.chunks and move it explicitly vs having to construct a bounds or find command. For instance:

      db.chunks.findOne();
      {
      	"_id" : "testme.testme-_id_MinKey",
      	"lastmod" : Timestamp(28, 0),
      	"lastmodEpoch" : ObjectId("52c322fd84dab9fabf34992b"),
      	"ns" : "testme.testme",
      	"min" : {
      		"_id" : { "$minKey" : 1 }
      	},
      	"max" : {
      		"_id" : NumberLong("-7378697629483820640")
      	},
      	"shard" : "REPLSET_60007"
      }
      
      x = {	"moveChunk" : "testme.testme",
      	"_id": "testme.testme-_id_MinKey",
      	"to" : "REPLSET_60005"
      }
      db.runCommand(x);
      
      

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            kennygorman Kenny Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: