[SERVER-76234] Don't log "Adding oplog entry for create/createIndexes to transaction" for unreplicated collections Created: 18/Apr/23  Updated: 19/Apr/23  Resolved: 18/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Louis Williams Assignee: Backlog - Storage Execution Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-76233 Don't log "Adding oplog entry for cre... Closed
Assigned Teams:
Storage Execution
Operating System: ALL
Participants:

 Description   

We log this message if I create a collection on the local database:

{"t":{"$date":"2023-04-18T10:35:43.272+00:00"},"s":"I",  "c":"STORAGE",  "id":20320,   "ctx":"conn15","msg":"createCollection","attr":{"namespace":"local.null","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":
"805bd4d5-b1a3-4763-a2fa-ba7b79f34058"}},"options":{}}}
{"t":{"$date":"2023-04-18T10:35:43.314+00:00"},"s":"I",  "c":"REPL",     "id":7360102, "ctx":"conn15","msg":"Added oplog entry for create to transaction","attr":{"namespace":"local.$cmd","uuid":{"uuid":{"$uuid":"80
5bd4d5-b1a3-4763-a2fa-ba7b79f34058"}},"object":{"create":"null","idIndex":{"v":2,"key":{"_id":1},"name":"_id_"}}}}

And when creating an index:

{"t":{"$date":"2023-04-18T10:36:00.713+00:00"},"s":"I",  "c":"REPL",     "id":7360100, "ctx":"conn15","msg":"Added oplog entry for createIndexes to transaction","attr":{"namespace":"local.$cmd","uuid":{"uuid":{"$uu
id":"805bd4d5-b1a3-4763-a2fa-ba7b79f34058"}},"object":{"createIndexes":"null","v":2,"key":{"b":1},"name":"b_1"}}}


Generated at Thu Feb 08 06:32:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.