[SERVER-82353] Multi-document transactions can miss documents when movePrimary runs concurrently Created: 20/Oct/23 Updated: 08/Feb/24 Resolved: 23/Jan/24 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 4.2.0, 4.4.0, 5.0.0, 6.0.0, 7.0.0 |
| Fix Version/s: | 7.2.1, 7.3.0-rc0, 7.0.6, 6.0.14 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jordi Serra Torrens | Assignee: | Jordi Serra Torrens |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | car-qw | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Catalog and Routing
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Backport Requested: |
v7.2, v7.0, v6.0, v5.0, v4.4
|
||||||||||||||||||||
| Sprint: | CAR Team 2023-11-13, CAR Team 2023-11-27, CAR Team 2023-12-11, CAR Team 2023-12-25, CAR Team 2024-01-08, CAR Team 2024-01-22, CAR Team 2024-02-05 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 101 | ||||||||||||||||||||
| Story Points: | 3 | ||||||||||||||||||||
| Description |
|
Consider a multi-document transaction with readConcern=snapshot (without atClusterTIme provided by the client) involving an unsharded collection, and the following interleaving: 1. Mongos chooses the 'atClusterTime' at which the transaction will run. Let's say it choses TS100. This can cause reads to not see the expected data, and writes to not modify the expected documents. Edit: A similar bug can occur with readConcerns other than snapshot. For instance, consider initially shard1 owns dbA, and shard2 owns dbB: |
| Comments |
| Comment by Githook User [ 08/Feb/24 ] |
|
Author: {'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}Message: (cherry picked from commit 7c91dbccd67012a190c44ad801255c64eb54885d) |
| Comment by Githook User [ 01/Feb/24 ] |
|
Author: {'name': 'Jordi Serra Torrens', 'email': 'jordist@users.noreply.github.com', 'username': 'jordist'}Message: GitOrigin-RevId: 21fe3bc7470f7da95de7d589db9e328e63bf829b |
| Comment by Githook User [ 23/Jan/24 ] |
|
Author: {'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}Message: (cherry picked from commit 7c91dbccd67012a190c44ad801255c64eb54885d) GitOrigin-RevId: f182850a582dfa472e8d6aa83396dbe7391a33d9 |
| Comment by Githook User [ 23/Jan/24 ] |
|
Author: {'name': 'Jordi Serra Torrens', 'email': 'jordist@users.noreply.github.com', 'username': 'jordist'}Message: GitOrigin-RevId: 7c91dbccd67012a190c44ad801255c64eb54885d |
| Comment by Jordi Serra Torrens [ 20/Oct/23 ] |
|
|