[SERVER-30464] Edit startup warning when running replset member as standalone to mention that data may look inconsistent Created: 01/Aug/17 Updated: 30/Oct/23 Resolved: 19/Mar/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.7.4 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | Kyle Suarez |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | neweng, rollback-non-functional | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||
| Sprint: | Repl 2018-03-26 | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Description |
|
With the recover to timestamp project now when you restart a replica set node as a standalone, the data will be at the checkpoint timestamp even though the oplog may contain entries past that time that have 'logically' been applied to this node (and would get applied at startup before accepting connections if the node was restarted as a replica set member again). We already log the following startupWarning when a standalone is brought up that detects a replica set configuration:
We should amend that message to also say that the data may look inconsistent with the oplog. Perhaps something like adding the line "Database contents may appear inconsistent with the contents of the oplog and may appear to not contain writes that were visible when this node was running as part of a replica set." between the first and second lines of the existing message. |
| Comments |
| Comment by Kyle Suarez [ 19/Mar/18 ] |
|
judah.schvimer, this has been pushed in [https://github.com/mongodb/mongo/commit/08f5647db5fc54395a0c1bb3a0622d058e338ec7|08f5647d] but without logging the value of the stable checkpoint. Want me to make a new ticket for that and put it in rollback-optional? |
| Comment by Githook User [ 19/Mar/18 ] |
|
Author: {'email': 'kyle.suarez@mongodb.com', 'name': 'Kyle Suarez', 'username': 'ksuarz'}Message: |
| Comment by Kyle Suarez [ 12/Mar/18 ] |
|
alyson.cabral – done. |
| Comment by Alyson Cabral (Inactive) [ 12/Mar/18 ] |
|
Can we add docs needed to this ticket? |
| Comment by Judah Schvimer [ 01/Mar/18 ] |
|
It would be very helpful if this could specify if we restarted at a stable checkpoint, and if so the timestamp of that checkpoint. |