[SERVER-8324] split command with find fails Created: 24/Jan/13 Updated: 11/Jul/16 Resolved: 08/Feb/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 2.3.2 |
| Fix Version/s: | 2.4.0-rc1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Randolph Tan | Assignee: | Alberto Lerner |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
Running the small snippet below results in:
|
| Comments |
| Comment by auto [ 08/Feb/13 ] |
|
Author: {u'date': u'2013-02-08T18:16:35Z', u'email': u'alerner@10gen.com', u'name': u'Alberto Lerner'}Message: |
| Comment by Alberto Lerner [ 08/Feb/13 ] |
|
I think the split command works as desired but the error message it is emitting is confusing. The semantics of split+find x is "split the chunk where x lives in half". If that chunk is empty, there is no way to determine what a key would be that would divide the chunk in two parts. (Note that this is not a split+middle x, in which case we'd use that key to split.) My suggestion is to clarify the error message, saying that the chunk is empty. |
| Comment by Randolph Tan [ 30/Jan/13 ] |
|
It looks like the error was raised because the chunk has no document. If you insert a couple of documents before doing the split, then the command will just run fine. |