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

mongo shard remove fail with warning: cannot remove pending chunk [{ _id: -9037293457323899541 }, { _id: -9022987269115127569 }), this shard does not contain the chunk

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.7
    • Component/s: Sharding
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Hi,

      I am using mongo 2.6 server and I have over 100k record in shard collection.

      when I perform

      db.runCommand( { removeShard: "shard_h" } )
      

      few collection are manage to move except the 100krecord collection. I got this error on other shard mongo log.

      2015-05-04T06:49:43.729+0000 [migrateThread] about to log metadata event: { _id: "server1-2015-05-04T06:49:43-554716878565296884b22213", server: "server2", clientAddr: ":27017", time: new Date(1430722183729), what: "moveChunk.to", ns: "data", details: { min: { _id: -9037293457323899541 }, max: { _id: -9022987269115127569 }, note: "aborted", errmsg: "aborting migration, shard is missing indexes and collection is not empty. Non-trivial index creation should be scheduled manually" } }
      2015-05-04T06:49:43.738+0000 [migrateThread] warning: cannot remove pending chunk [{ _id: -9037293457323899541 }, { _id: -9022987269115127569 }), this shard does not contain the chunk
      2015-05-04T06:49:43.738+0000 [migrateThread] warning: cannot remove pending chunk [{ _id: -9037293457323899541 }, { _id: -9022987269115127569 }), this shard does not contain the chunk
      

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            tuapuikia Stan Wong
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: