[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: |
|
||||||||||||
| Participants: | |||||||||||||
| Case: | (copied to CRM) | ||||||||||||
| 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. |