[SERVER-9352] Log entire index specification Created: 15/Apr/13  Updated: 27/Oct/15  Resolved: 28/Aug/13

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

Type: Improvement Priority: Minor - P4
Reporter: Stephen Lee Assignee: Phillip Quiza
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DOCS-1938 Document: Log entire index specification Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Currently, the logs will indicate if an index is built on a collection. This event includes output on the index field specification and whether the background option is used, but other important options, like unique, dropDups, and sparse, are missing. These (or maybe all) options would be useful in determining what the index options were historically vs. currently.



 Comments   
Comment by Matt Kangas [ 28/Aug/13 ]

We changed a log message. Should we document this change?

Example from the code review:

Old message format:

2013-08-22T16:28:00.690-0400 [conn1] build index test.testcol { attr: 1.0, bool: 1.0 } background 

New:

2013-08-23T12:10:04.918-0400 [conn1] build index on: test.testcol properties: { "v" : 1, "key" : { "attr" : 1, "bool" : 1 }, "unique" : true, "ns" : "test.testcol", "name" : "attr_1_bool_1", "sparse" : 1, "dropDups" : 1, "background" : 1 }

Comment by auto [ 28/Aug/13 ]

Author:

{u'username': u'pilliq', u'name': u'Phillip Quiza', u'email': u'pquiza@gmail.com'}

Message: SERVER-9352: log all index properties on index creation

Signed-off-by: Matt Kangas <matt.kangas@10gen.com>
Branch: master
https://github.com/mongodb/mongo/commit/4a0d9d56bf56715e6488c886226caa258c500e04

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