[SERVER-11055] mergeChunk error message wrong when chunk on wrong shard Created: 06/Oct/13  Updated: 11/Jul/16  Resolved: 24/Oct/13

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.5.2
Fix Version/s: 2.5.4

Type: Bug Priority: Minor - P4
Reporter: Asya Kamsky Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

sh.splitAt("foo.bad",{_id:0})

{ "ok" : 1 }

foo@local(2.5.2) > sh.moveChunk("foo.bad",{_id:-1},"shard0001")

{ "millis" : 32, "ok" : 1 }

foo@local(2.5.2) > sh._adminCommand({mergeChunks:"foo.bad", bounds:[{_id:MinKey},{_id:MaxKey}]})
{
"ok" : 0,
"errmsg" : "could not merge chunks, collection foo.bad does not contain a chunk starting at ...
}

Sometimes it says "ending at" - depending on where it started.

Participants:

 Description   

Split a chunk. Move one of new (empty) chunks to another shard. Try to (re)merge those two chunks.

Error message: "errmsg" : "could not merge chunks, collection foo.bar does not contain a chunk ending at

{ _id: 40.0 }

"

Error message should say that collection does not contain chunk ending at <key> on this shard or "the chunks you want to merge are on different shards".



 Comments   
Comment by auto [ 24/Oct/13 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-11055 mergeChunk error message wrong when chunk on wrong shard
Branch: master
https://github.com/mongodb/mongo/commit/2a584994ee747b46ada6c6383c7e983dcdf861a6

Generated at Thu Feb 08 03:24:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.