-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Replication
-
Fully Compatible
-
Repl 2023-03-06
-
168
Recently we tried to diagnose a case in which a createCollection oplog entry was missing on the primary / secondaries. From the logs we could see that the createCollection event had occurred on the primary, but we weren't able to determine what the opTime of the event was from the logs. This made it harder to diagnose the problem.
If we want to just log this for createCollection, we can add the opTime information to this log line: https://github.com/10gen/mongo/blob/f9310b523138aa8a79b61797a42748df006cf1b8/src/mongo/db/catalog/database_impl.cpp#L828.
However, it would be nice to log the optimes of all DDL events and possibly CRUD events as well, if the customer has the correct logging level on. This may require logging at the point we actually apply an event to the oplog.
- is related to
-
SERVER-74458 Unskip DDL logging test in multiversion suites
- Closed