[SERVER-70167] Resumed create coordinator may incorrectly try to release the critical section Created: 03/Oct/22 Updated: 29/Oct/23 Resolved: 28/Oct/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 6.1.0-rc0 |
| Fix Version/s: | 6.1.1, 6.2.0-rc0, 6.0.5, 5.0.16 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Pierlauro Sciarelli | Assignee: | Enrico Golfieri |
| 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 | ||||||||||||
| Backport Requested: |
v6.1, v6.0, v5.0
|
||||||||||||
| Sprint: | Sharding EMEA 2022-10-31 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
It may happen that a create collection coordinator successfully commits the metadata of a new sharded collection on the config server (here or here) and releases the critical section right before stepping down. On resume, the collection is identified as already sharded and the critical section re-released. However, if a migration kicks in and acquires the critical section right before issuing the release, the following invariant is triggered. |
| Comments |
| Comment by Githook User [ 22/Feb/23 ] |
|
Author: {'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}Message: (cherry picked from commit 2551216048b331f5ea1da9ff8472e7305f3d5980) |
| Comment by Githook User [ 22/Feb/23 ] |
|
Author: {'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}Message: (cherry picked from commit 2551216048b331f5ea1da9ff8472e7305f3d5980) |
| Comment by Githook User [ 15/Nov/22 ] |
|
Author: {'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}Message: |
| Comment by Githook User [ 08/Nov/22 ] |
|
Author: {'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}Message: (cherry picked from commit 819bdae0b239f0ad75c0791e18943e6c4cf9762d) |
| Comment by Githook User [ 28/Oct/22 ] |
|
Author: {'name': 'Enrico Golfieri', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}Message: |