[SERVER-12763] Shell insert method provides confusing error message when inserting many objects. Created: 18/Feb/14 Updated: 06/Jun/22 Resolved: 11/Mar/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 2.5.5 |
| Fix Version/s: | 2.6.0-rc2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Andy Schwerin | Assignee: | Andreas Nilsson |
| Resolution: | Done | Votes: | 0 |
| Labels: | 26qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||||
| Steps To Reproduce: |
Expected result: A WriteResult object.
|
||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||
| Description |
|
If you try to insert a large number of objects using the insert([]) method on a collection in the shell, you get back a confusing error message:
|
| Comments |
| Comment by Githook User [ 11/Mar/14 ] |
|
Author: {u'username': u'agralius', u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@10gen.com'}Message: |
| Comment by Githook User [ 11/Mar/14 ] |
|
Author: {u'username': u'agralius', u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@10gen.com'}Message: |
| Comment by Andreas Nilsson [ 10/Mar/14 ] |
|
Ok cool, created and linked |
| Comment by Scott Hernandez (Inactive) [ 10/Mar/14 ] |
|
The support for arrays was added recently and most of the new code uses bulk/batch so I think we just have a test hole. We should def. add one to jstests/core |
| Comment by Andreas Nilsson [ 10/Mar/14 ] |
|
How can we not have an automated test of inserting an array somewhere? This issue should occur for shell write modes 'commands' and 'compatibility'. |