[SERVER-12242] can't run "compact" on a collection if it has an index on an empty field name Created: 02/Jan/14 Updated: 02/Apr/14 Resolved: 11/Feb/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | None |
| Fix Version/s: | 2.6.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Michael O'Brien | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 0 |
| Labels: | 26qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
creating an index on a nested field path, where one field name in the path is empty - for example db.test.createIndex( {"a..b":1}) was valid in <= 2.4. However, after upgrading to 2.6, running "compact" on a collection that has an index of this type will fail.
|
| Comments |
| Comment by Githook User [ 02/Apr/14 ] |
|
Author: {u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: The error messages originally were incorrectly swapped with one (cherry picked from commit df0236cab083063fd125e289c6bac6b017bc6b67) |
| Comment by Githook User [ 02/Apr/14 ] |
|
Author: {u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: The error messages originally were incorrectly swapped with one |
| Comment by Githook User [ 11/Feb/14 ] |
|
Author: {u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: |
| Comment by Githook User [ 11/Feb/14 ] |
|
Author: {u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Move index key validation into IndexCatalog::validateKeyPattern This just moves around existing checks and tries to harmonize the error Prep for |
| Comment by Daniel Pasette (Inactive) [ 16/Jan/14 ] |
|
We should do a validation step before compact which will use the same method used in checking for valid indexes used in |