Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-807

Extend $indexStats output to include full index options and shard name

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • Labels:
      None

      Downstream Change Summary

      The output of $indexStats has been extended to include:
      -The index specification ('spec')
      -The name of the shard that this index belongs to ('shard')
      -A flag to indicate whether the index is currently being built ('building: true')

      Description of Linked Ticket

      From the design document, the following changes should be made to $indexStats:

      • By default, each document returned by $indexStats will return an additional spec field that will contain the BSON object index description associated with the index in its IndexDescriptor, like those returned by the listIndexes command.
      • Indexes that are being built should be included in the $indexStats output and will contain an additional building boolean field. This field will not be present for indexes that have finished building.
      • Output documents generated for indexes on sharding enabled node started with --shardsvr should contain the shardId of the shard that generated the document in a new shard field.

            Assignee:
            Unassigned Unassigned
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: