[DRIVERS-807] Extend $indexStats output to include full index options and shard name Created: 16/Dec/19  Updated: 27/May/22  Resolved: 28/Jan/20

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-44915 Extend $indexStats output to include ... Closed
Server Compat: 4.2, 4.3

 Description   
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.


 Comments   
Comment by Esha Bhargava [ 28/Jan/20 ]

No driver changes needed.

Comment by Esha Bhargava [ 27/Jan/20 ]

jeff.yemin Can you check if this is needed for your teams?

Generated at Thu Feb 08 08:22:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.