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

Add "includeIndexBuildInfo" flag to listIndexes

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • Execution Team 2021-11-01, Execution Team 2021-11-29
    • 20

      The current listIndexes command displays in-progress index builds by default, but it does not include any information to indicate which indexes are in progress.

      The command will report this information with the "includeBuildUUIDs" option, which displays the UUID of any active index builds as its "buildUUID". This option is not enabled by default, and at the time of writing, is not documented.

      To avoid confusion for users, listIndexes should just include buildUUIDs by default. We should consider eliminating the includeBuildUUIDs option, or at least making it default to 'true', since the current behavior is pretty confusing. In the spirit of being more explicit, we may also want to consider adding an "inProgress" field, since it might not be obvious that the presence of a buildUUID means that an index build is in progress.

      "includeBuildUUIDs" is not part of the stable API, so I think we can safely remove it without having to update the API version, but I'm not sure.

            Assignee:
            gabriel.marks@mongodb.com Gabriel Marks
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: