[SERVER-19474] Calling createIndex() can cause the shell to stall Created: 17/Jul/15 Updated: 11/Sep/17 Resolved: 22/Jul/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell, Testing Infrastructure |
| Affects Version/s: | 3.1.5 |
| Fix Version/s: | 3.1.7 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | J Delaney | Assignee: | J Delaney |
| Resolution: | Done | Votes: | 0 |
| Labels: | dnsf | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Minor Change | ||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: | From the shell run:
|
||||||||
| Participants: | |||||||||
| Description |
|
When createIndex is called in the shell it checks if the options provided are an array with if ( options.length ). If options is an object with a a field called length that is very large the shell will stall. This can be fixed by check if it's an array with if ( Array.isArray(options ). This can cause problems in jstestfuzz. |
| Comments |
| Comment by Githook User [ 28/Jul/15 ] | |
|
Author: {u'username': u'j-delaney', u'name': u'J Delaney', u'email': u'j.delaney@mongodb.com'}Message: Use built-in ES5 function for less error-prone array detection and | |
| Comment by J Delaney [ 22/Jul/15 ] | |
|
Running
will no longer create a unique index on a with a name of 'd' but will instead throw an error with message "Index options that are supplied in array form may only specify three values: name, unique, dropDups" | |
| Comment by Githook User [ 22/Jul/15 ] | |
|
Author: {u'username': u'j-delaney', u'name': u'J Delaney', u'email': u'j.delaney@mongodb.com'}Message: Use built-in ES5 function for less error-prone array detection and |