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

Identify in-progress index builds as building in the index specs that the listIndexes command returns

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.6
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • Storage NYC 2018-11-05, Storage NYC 2018-11-19

      SERVER-37721 optionally includes in-progress index builds in listIndexes results, but the returned index specs do not reflect the difference between in-progress and ready indexes. We must be able to tell the difference, for the purposes expressed in SERVER-37721.

      This is as simple as exposing

      {ready:false}

      and

      {ready:true}

      in the index specs that listIndexes returns.

      Note: if I recall right, we currently interpret the absence of the 'ready' field in the persisted index catalog entry as either true or false – we don't persist it all the time. I think the higher level parsing code interprets it correctly for the in-memory index catalog at least: extend the interpretation to listIndexes results.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: