[SERVER-47812] Secondaries persist wildcard multikeypaths out of order Created: 27/Apr/20 Updated: 29/Oct/23 Resolved: 12/Sep/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication, Storage |
| Affects Version/s: | 4.2.0, 4.4.0-rc0 |
| Fix Version/s: | 4.8.0, 4.4.2, 4.2.12 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Daniel Gottlieb (Inactive) | Assignee: | Bernard Gorman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | qexec-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Backport Requested: |
v4.4, v4.2
|
||||||||||||||||
| Sprint: | Query 2020-08-24, Query 2020-09-07, Query 2020-09-21 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Linked BF Score: | 33 | ||||||||||||||||
| Description |
|
Because secondaries apply operations out of order, the following scenario can play out in the absence of special logic:
See this comment for persisting classical index multikey paths. |
| Comments |
| Comment by Githook User [ 20/Nov/20 ] |
|
Author: {'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}Message: (cherry picked from commit bd320bc2d10cff75756a2c95986cc81ec8a5e7c7) |
| Comment by Githook User [ 19/Oct/20 ] |
|
Author: {'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}Message: (cherry picked from commit bd320bc2d10cff75756a2c95986cc81ec8a5e7c7) |
| Comment by Githook User [ 12/Sep/20 ] |
|
Author: {'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}Message: |
| Comment by Daniel Gottlieb (Inactive) [ 27/Aug/20 ] |
|
judah.schvimer reminded me that we had tests which demonstrate bugs when multikey writes are incorrectly timestamped due to replication potentially processing entries out of order. Attached is a patch bernard.gorman, as per our conversations I wrote another test for multikey on index types that don't track paths (e.g: "2d"), but was able to observe the MultikeyPathTracker being modified and that side-effect correctly propagating into the special multikey write secondaries perform. |