[SERVER-56896] Improve logv2 styling of Duplicate Key log lines 21238, 21570 Created: 12/May/21  Updated: 07/Nov/23  Resolved: 07/Nov/23

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

Type: Improvement Priority: Major - P3
Reporter: Eric Sedor Assignee: Chenhao Qu
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2023-11-13
Participants:

 Description   

attr.error in log line 21238 and attr.error.errmsg 21570 contain long semi-structured strings that duplicate more structured values that are elsewhere in the attr subdocument. The "shell JSON" in the strings reduces human readability

Can we remove the detailed information from these strings and rely on references to the structured attr fields?



 Comments   
Comment by Githook User [ 31/Oct/23 ]

Author:

{'name': 'Chenhao Qu', 'email': 'chenhao.qu@mongodb.com', 'username': 'quchenhao'}

Message: SERVER-56896 Log the duplicate key error concisely with attributes
Branch: master
https://github.com/mongodb/mongo/commit/701d295a422bee38111768edefc9571e0f3fa218

Comment by Githook User [ 30/Oct/23 ]

Author:

{'name': 'Chenhao Qu', 'email': 'chenhao.qu@mongodb.com', 'username': 'quchenhao'}

Message: SERVER-56896 Log the duplicate key error concisley with arrtributes
Branch: chenhaoqu/SERVER-56896-duplicateKey-logging
https://github.com/mongodb/mongo/commit/aaa930aaedec274884cac8f874c7bcddc63f948e

Generated at Thu Feb 08 05:40:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.