Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38532

Add index ns and name to "build index done" log line

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 4.1.7
    • Affects Version/s: None
    • Component/s: Index Maintenance, Logging
    • Labels:
      None
    • Fully Compatible
    • Storage NYC 2019-01-28
    • 1

      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?

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            nicholas.cottrell@mongodb.com Nic Cottrell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: