[SERVER-58104] config.system.sessions collection can end up with invalid chunks if it is dropped and re-sharded with a shard key other than _id Created: 25/Jun/21 Updated: 29/Oct/23 Resolved: 08/Oct/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.6 Required, 4.2.18, 4.0.28, 4.4.10 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Cheahuychou Mao | Assignee: | Jonathan Lee |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | sharding-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Backport Requested: |
v4.4, v4.2, v4.0, v3.6
|
||||||||||||
| Sprint: | Sharding 2021-09-20, Sharding 2021-10-04, Sharding 2021-10-18 | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 85 | ||||||||||||
| Description |
|
The balancer assumes that the sessions collection is always sharded by _id. So the split points it uses are always computed based on _id.id. So if a the sessions collection is dropped, and re-sharded with a shard key other than _id, the balancer will end up creating invalid chunks (the _configsvrCommitChunkSplit command does not verify that the requested split points have the expected shard key pattern). This issue exists in 3.6, 4.0, 4.2 and 4.4 since prior to We can solve this by doing one of the following:
|
| Comments |
| Comment by Githook User [ 07/Oct/21 ] |
|
Author: {'name': 'Jonathan Lee', 'email': 'jonathan.lee@mongodb.com', 'username': 'jonatlee'}Message: (cherry picked from commit 9a12a55346e0da77acc94797bf5a558b001188e0) |
| Comment by Githook User [ 07/Oct/21 ] |
|
Author: {'name': 'Jonathan Lee', 'email': 'jonathan.lee@mongodb.com', 'username': 'jonatlee'}Message: Revert " This reverts commit 01549c7e5d425f48c5c9533d2655e20d992d9eef. |
| Comment by Githook User [ 06/Oct/21 ] |
|
Author: {'name': 'Jonathan Lee', 'email': 'jonathan.lee@mongodb.com', 'username': 'jonatlee'}Message: (cherry picked from commit 9a12a55346e0da77acc94797bf5a558b001188e0) |
| Comment by Githook User [ 17/Sep/21 ] |
|
Author: {'name': 'Jonathan Lee', 'email': 'jonathan.lee@mongodb.com', 'username': 'jonatlee'}Message: (cherry picked from commit 9a12a55346e0da77acc94797bf5a558b001188e0) |
| Comment by Githook User [ 17/Sep/21 ] |
|
Author: {'name': 'Jonathan Lee', 'email': 'jonathan.lee@mongodb.com', 'username': 'jonatlee'}Message: |