[SERVER-72422] FCBIS may never truncate the oplog Created: 29/Dec/22 Updated: 29/Oct/23 Resolved: 06/Jan/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 5.2.0, 6.0.0, 6.1.0, 6.2.0-rc4 |
| Fix Version/s: | 6.0.4, 6.2.0-rc5, 6.3.0-rc0 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Louis Williams | Assignee: | Matthew Russotto |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | repl-shortlist | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Replication
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Requested: |
v6.2, v6.0
|
||||||||||||||||||||
| Sprint: | Repl 2023-01-09 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
We install a callback inside the storage engine to determine how much oplog to keep for uncommitted transactions. Upon completion, FCBIS reconstructs a new storage engine, but it does not re-instantiate this callback. When this callback is not present, we default to not truncating the oplog. As a result, we will never truncate the oplog after completing a FCBIS. Restarting the node fixes this problem permanently. |
| Comments |
| Comment by Githook User [ 06/Jan/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}Message: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 06/Jan/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}Message: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 06/Jan/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}Message: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 06/Jan/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}Message: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 06/Jan/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}Message: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 06/Jan/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}Message: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Kelsey Schubert [ 04/Jan/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Yes, I think this warrants a backport to 6.2. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andy Schwerin [ 04/Jan/23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Does this need a 6.2 backport if we do a 6.0 backport? I can't remember the rules, or if they matter for this bug. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Louis Williams [ 29/Dec/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Reproducer (enterprise-only):
observe that the "new" node's oplog never shrinks |