[SERVER-36004] SessionUpdateTracker should ignore no-op entries for pre/post image oplogs Created: 06/Jul/18 Updated: 29/Oct/23 Resolved: 26/Feb/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.13, 4.1.9, 4.0.11 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Randolph Tan | Assignee: | Randolph Tan |
| 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.0, v3.6
|
||||||||||||||||||||||||||||
| Sprint: | Sharding 2019-03-11 | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Linked BF Score: | 13 | ||||||||||||||||||||||||||||
| Description |
|
These pre/post entries is only valid if paired with the corresponding update/delete oplog entries. Since the update/delete oplog entry always comes after the pre/post entry and both of these entries contain the same amount information necessary to properly replicate the config.transactions table, the pre/post entry should be ignored. Otherwise, it can create a situation where the secondary replication would mistakenly think that write was performed if sees the pre/post entry even though the update/delete oplog entry was removed due to replication rollback. Note: it should not ignore no-op entries generated during session migration. |
| Comments |
| Comment by Githook User [ 04/Jun/19 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: (cherry picked from commit 9638317daa5300efdd43acfa4688e5c739beff4d) |
| Comment by Githook User [ 04/Jun/19 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: (cherry picked from commit 9638317daa5300efdd43acfa4688e5c739beff4d) |
| Comment by Githook User [ 26/Feb/19 ] |
|
Author: {'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}Message: |
| Comment by Randolph Tan [ 28/Jan/19 ] |
|
kaloian.manassiev I think it can be done in a day |
| Comment by Kaloian Manassiev [ 28/Jan/19 ] |
|
renctan, is this about 1 day of work? Also do you mind updating the description with what is the side effect of this bug - it is kind of difficult to gauge. |