[SERVER-76233] Don't log "Adding oplog entry for create/createIndexes to transaction" for unreplicated collections Created: 18/Apr/23  Updated: 29/Oct/23  Resolved: 24/May/23

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

Type: Bug Priority: Major - P3
Reporter: Louis Williams Assignee: Matt Kneiser
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-76234 Don't log "Adding oplog entry for cre... Closed
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2023-05-29
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"}}}



 Comments   
Comment by Githook User [ 23/May/23 ]

Author:

{'name': 'Matt Kneiser', 'email': 'matt.kneiser@mongodb.com', 'username': 'themattman'}

Message: SERVER-76233 Account for unreplicated collections with create log msg
Branch: master
https://github.com/mongodb/mongo/commit/6b4a309196ffd21ad6f1a70988007a49fef1488a

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