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

allow moving of chunk by _id vs find or bounds

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Admin, Sharding
    • None
    • Sharding
    • ALL

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: