[SERVER-38405] splitVector command fails on a collection with collation Created: 05/Dec/18 Updated: 05/Dec/18 Resolved: 05/Dec/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | 3.6.8 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Chetan Paithane | Assignee: | Kelsey Schubert |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Steps To Reproduce: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: |
| Description |
|
I created a collection with collation specified. Wrote 5 documents in the collection. Ran splitVector command. But, hit an error that "couldn't find index over splitting key { _id: 1.0 }" Commands performed in Mongodb shell are written in "Steps to Reproduce" section. Any help in alternative solution to splitVector is appreciated. |
| Comments |
| Comment by Chetan Paithane [ 05/Dec/18 ] | ||||||||
|
Thanks for help. I verified steps specified by you. It worked for me. This bug can be resolved. mongos> db.contacts.createIndex( { _id: 1, category : 1 }, { collation: { locale: "simple" } }) }, , maxChunkSize : 256}) { "splitKeys" : [ ], "ok" : 1 }mongos>
| ||||||||
| Comment by Dmitry Ryabtsev [ 05/Dec/18 ] | ||||||||
|
The command will work if an index with the simple locale is created first, e.g. this will work:
|