[SERVER-61444] Resharding uses of bumpCollectionVersionAndChangeMetadataInTxn are not idempotent Created: 12/Nov/21 Updated: 29/Oct/23 Resolved: 08/Feb/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 5.3.0, 5.2.1, 5.0.7 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Randolph Tan | Assignee: | Brett Nawrocki |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | sharding-nyc-subteam1 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Backport Requested: |
v5.2, v5.0
|
||||||||||||||||||||
| Sprint: | Sharding 2022-01-10, Sharding 2022-01-24, Sharding 2022-02-07, Sharding 2022-05-02 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 36 | ||||||||||||||||||||
| Story Points: | 4 | ||||||||||||||||||||
| Description |
|
This is because the usages was assuming that if an error occurred while running the function, it will be aborted so retrying can start with a clean slate. However, there is an edge case when commit was successful but the wait for write concern was interrupted. This can cause the function to assert even after successfully committing the changes. |
| Comments |
| Comment by Githook User [ 09/Feb/22 ] |
|
Author: {'name': 'Brett Nawrocki', 'email': 'brett.nawrocki@mongodb.com', 'username': 'brettnawrocki'}Message: Prior to updating its own in-memory state, the resharding coordinator (cherry picked from commit a710a2bf41118b848976502839590b66993bf512) |
| Comment by Githook User [ 09/Feb/22 ] |
|
Author: {'name': 'Brett Nawrocki', 'email': 'brett.nawrocki@mongodb.com', 'username': 'brettnawrocki'}Message: Prior to updating its own in-memory state, the resharding coordinator (cherry picked from commit a710a2bf41118b848976502839590b66993bf512) |
| Comment by Githook User [ 08/Feb/22 ] |
|
Author: {'name': 'Brett Nawrocki', 'email': 'brett.nawrocki@mongodb.com', 'username': 'brettnawrocki'}Message: Changes in the previous commit for |
| Comment by Githook User [ 24/Jan/22 ] |
|
Author: {'name': 'Brett Nawrocki', 'email': 'brett.nawrocki@mongodb.com', 'username': 'brettnawrocki'}Message: Prior to updating its own in-memory state, the resharding coordinator |