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

Index build in unexpected phase during shutdown in resumable_index_build*.js

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None
    • Fully Compatible
    • Execution Team 2020-08-10

      jstests/noPassthrough/resumable_index_build*.js test that we write out state from index builds in various states to disk during shutdown. However, we are not writing out state relevant to the expected phase of the index build right now. For example, resumable_index_build_collection_scan_phase.js expects state from the collection scan phase to be written, but what is actually written is state from the bulk load phase.

      SERVER-47604 might be relevant here because we stepdown the node before shutting it down, so we log "Index build: failed" before shutdown happens and the test waits for that message to be logged before turning off the failpoint. This could cause the index build to resume and even transition to the next phase. Then when shutdown happens, we write out state for the new phase out to disk instead of the phase we intended.

      This ticket should first investigate whether SERVER-47604 actually resolves the issue.

            Assignee:
            gregory.noma@mongodb.com Gregory Noma
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: