[SERVER-38532] Add index ns and name to "build index done" log line Created: 11/Dec/18  Updated: 29/Oct/23  Resolved: 15/Jan/19

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Logging
Affects Version/s: None
Fix Version/s: 4.1.7

Type: Improvement Priority: Trivial - P5
Reporter: Nic Cottrell Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Storage NYC 2019-01-28
Participants:
Story Points: 1

 Description   

A lack of final log details make it hard to reconstruct index build timelines from mongod logs using grep etc.

When a build starts we get a log like:

migtest34-shard-00-02-sokhy.mongodb.net/27017/mongodb/mongodb.log.2018-12-11T08-01-04:2018-12-10T23:13:22.544+0000 I INDEX    [repl index builder 13] build index on: trev.historicTrackingEvent properties: { v: 2, key: { createdDateTime: 1 }, name: "createdDateTime", expireAfterSeconds: 10368000, ns: "trev.historicTrackingEvent", background: true }

but when it ends, only:

migtest34-shard-00-02-sokhy.mongodb.net/27017/mongodb/mongodb.log.2018-12-11T08-01-04:2018-12-10T23:49:52.020+0000 I INDEX    [repl index builder 13] build index done.  scanned 50567515 total records. 2189 secs

Can we add at least the ns and index name to the "build index done" so that we can use grep for analysis?



 Comments   
Comment by Githook User [ 15/Jan/19 ]

Author:

{'username': 'louiswilliams', 'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams'}

Message: SERVER-38532 Add index ns and name to index build done log line
Branch: master
https://github.com/mongodb/mongo/commit/af8fa6034f8a989cb47ee890c6a6b3e87e1bcf7b

Generated at Thu Feb 08 04:49:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.