[SERVER-65850] db.printReplication info not consistent when resizing the oplog Created: 20/Apr/22 Updated: 27/Oct/23 Resolved: 04/May/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Vinicius Grippa | Assignee: | Chris Kelly |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
This metric gets innacurate when resizing the oplog. The metric is based on the first and last entry of the oplog. If you resize it, you won't have an accurate estimation. We also should take in consideration the :
if your used is space is 50% of the oplog and the oplog window is 10 hours, it would be fair to say that full oplog can retain 20 hours. Suggestion:
} |
| Comments |
| Comment by Chris Kelly [ 04/May/22 ] |
|
Hi Vinicius, I was able to generally see what you were talking about with this, and I think the metric you are describing would be helpful alongside what is provided by db.printReplicationInfo(). However, because this is currently working as designed, this appears to be more of a feature request. That is to say, the output of log length from start to end appears to be correct because it correlates with the first oplog event and the last oplog event time. If resized to be larger, it is expected that this would not change. Decreasing it will cause it to truncate from the oldest time. While this may not display how long your oplog can hold necessarily, it is displaying how long the range of time is currently accounted for. In this case, the best way to move would be for you to go ahead and submit this as a feature request over at feedback.mongodb.com. We're starting to direct new feature requests and improvements to that channel and preferring this JIRA project for bug reports specifically. You may also want to search and post on the MongoDB Developer Community Forums, as it's possible there are others who have guidance on how to satisfy your use-case. Thanks for your report! Regards, Christopher |