[SERVER-66139] Stuck on oplog visibility when inserting directly into oplog namespace in standalone mode Created: 03/May/22 Updated: 29/Oct/23 Resolved: 16/May/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0-rc6, 6.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Henrik Edin | Assignee: | Henrik Edin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Backport Requested: |
v6.0
|
||||||||||||||||
| Sprint: | Execution Team 2022-05-16, Execution Team 2022-05-30 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Writing directly to the oplog namespace in standalone mode causes any readers of the oplog to be stuck waiting for oplog visibility.
|
| Comments |
| Comment by Githook User [ 16/May/22 ] |
|
Author: {'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}Message: (cherry picked from commit fbdcf79b38b141aa89d7b38ddcf40d4065c4c2ae) |
| Comment by Githook User [ 16/May/22 ] |
|
Author: {'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}Message: |
| Comment by Eric Milkie [ 04/May/22 ] |
|
I think that fix should be fine. I'm surprised that the oplog namespace in standalone mode isn't already behaving like a regular capped collection; I think it used work that way for mmapV1 at least. |
| Comment by Henrik Edin [ 04/May/22 ] |
|
My proposed fix will make a Collection on the oplog namespace behave like a regular (capped) Collection in standalone mode. No special visibility and users can read everything. That is what we need I think. Just unsure about your comment milkie@mongodb.com, such behavior should be ok for shared restore and we don't need a new procedure? |