[SERVER-25176] Provide a way to list actively building indexes Created: 20/Jul/16  Updated: 07/Jun/18  Resolved: 07/Jun/18

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

Type: Improvement Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Asya Kamsky
Resolution: Won't Fix Votes: 5
Labels: listIndexes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-25175 listIndexes shouldn't include in-prog... Closed
is related to SERVER-34970 Consider indicating that an index bui... Closed
Participants:
Case:

 Description   

There is current no good way to get a list of active index builds (except maybe currentOp).

The system should provide a way to see what indexes are in-progress at any given time.

For operational and performance reasons this should probably not entail calling listIndexes on every collection in every database.



 Comments   
Comment by Asya Kamsky [ 07/Jun/18 ]

The currentOp command is intended for exactly this use case.  In addition as of 3.6 $currentOp is an aggregation stage so additional filters via $match can be appended in order to quickly search for only certain operations or types of operations.

 

Comment by James Kovacs [ 16/May/18 ]

It would be useful to see that an index definition exists, but is currently building so as to prevent users from attempting to add it again.

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