[SERVER-51067] Chunk move failed :: caused by :: IndexNotFound: can't find index with prefix Created: 19/Sep/20 Updated: 27/Oct/23 Resolved: 30/Sep/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | zhenchuan ding | Assignee: | Dmitry Agranat |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
我给我们的mongo 集群 新加了一个分片,但是在老得shard上 发现日志有报错,并且数据基本上没有均衡,均衡的功能是打开的,报错日志如下: 2020-09-18T12:37:17.589+0000 W SHARDING [conn1187835] Chunk move failed :: caused by :: IndexNotFound: can't find index with prefix { _id: "hashed" } in storeCurrentLocs for 202jgkbx.user |
| Comments |
| Comment by Dmitry Agranat [ 30/Sep/20 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Hi zhenchuan.ding@ptmind.com, thank you for clarification about a bug in your application. As for the data balancing and further tuning, I encourage you to ask our community by posting on the MongoDB Developer Community Forums or on Stack Overflow with the mongodb tag. Regards, | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by zhenchuan ding [ 25/Sep/20 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
The version we used was 4.2.8. We started with two shards, and then I added three Shards. However, the disk usage of the previous two shards is still growing, and the speed of data migration is particularly slow. At present, the data is balanced for two days, and the disk usage of the new shards is only one third of the previous Shards. Our total data is about 500g. Is this normal | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by zhenchuan ding [ 25/Sep/20 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Dmitry Agranat [ 24/Sep/20 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Could you please mention the current MongoDB version? Thanks, | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by zhenchuan ding [ 22/Sep/20 ] | ||||||||||||||||||||||||||||||||||||||||||||||
This is the latest log | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by zhenchuan ding [ 21/Sep/20 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|