[SERVER-71626] Failed to Presplit and create chunks in Sharded Cluster Created: 25/Nov/22 Updated: 12/Apr/23 Resolved: 12/Apr/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Rajesh Vinayagam | Assignee: | Jordi Serra Torrens |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | chunks, sharded-cluster, sharding-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
STG |
||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Sharding EMEA
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Sprint: | Sharding EMEA 2023-04-17 | ||||||||||||
| Participants: | |||||||||||||
| Description |
| Comments |
| Comment by Jordi Serra Torrens [ 12/Apr/23 ] |
|
It's difficult to conclusively tell exactly what interleaving lead to this split failure, given that the report does not mention the server version nor include logs or a config dump. However, from the error message above I can infer that this must be 5.0 or greater (because the config.chunks document have the 'uuid' field). I have not been able to reproduce the issue after following the steps in the report. I tried 5.0, 6.0 and master (~7.0). However, after code inspection I found one possible scenario where this can happen in 5.0, which I have been able to reproduce by using failpoints (attaching repro for the record repro-server-71626.patch For this reason, I'm going to mark this as duplicate of SERVER-54979/ Additionally, I'd like to point out that `sh.disableBalancing` must be run after `sh.shardCollection`. Otherwise `disableBalancing` has no effect because the sharded collection does not yet exists, and this could lead to the hypothesized migrations that ran concurrently with the split. If you do that, I expect the split failures to stop happening. |
| Comment by Jordi Serra Torrens [ 31/Mar/23 ] |
|
rajesh.vinayagam@mongodb.com can you share what server version is this on? |